org.apache.axis2.transport.http.server
Class SimpleHttpServerConnection

java.lang.Object
  extended byorg.apache.axis2.transport.http.server.SimpleHttpServerConnection

public class SimpleHttpServerConnection
extends java.lang.Object

A connection to the SimpleHttpServer.


Constructor Summary
SimpleHttpServerConnection(java.net.Socket socket)
           
 
Method Summary
 void close()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 int getSocketTimeout()
           
 ResponseWriter getWriter()
          Returns the ResponseWriter used to write the output to the socket.
 boolean isKeepAlive()
           
 boolean isOpen()
           
 SimpleRequest readRequest()
           
 SimpleResponse readResponse()
           
 void setKeepAlive(boolean b)
           
 void setSocketTimeout(int timeout)
           
 void writeRequest(SimpleRequest request)
           
 void writeResponse(SimpleResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleHttpServerConnection

public SimpleHttpServerConnection(java.net.Socket socket)
                           throws java.io.IOException
Method Detail

close

public void close()

isOpen

public boolean isOpen()

setKeepAlive

public void setKeepAlive(boolean b)

isKeepAlive

public boolean isKeepAlive()

getInputStream

public java.io.InputStream getInputStream()

getOutputStream

public java.io.OutputStream getOutputStream()

getWriter

public ResponseWriter getWriter()
                         throws java.io.UnsupportedEncodingException
Returns the ResponseWriter used to write the output to the socket.

Returns:
This connection's ResponseWriter
Throws:
java.io.UnsupportedEncodingException

readRequest

public SimpleRequest readRequest()
                          throws java.io.IOException
Throws:
java.io.IOException

readResponse

public SimpleResponse readResponse()
                            throws java.io.IOException
Throws:
java.io.IOException

writeRequest

public void writeRequest(SimpleRequest request)
                  throws java.io.IOException
Throws:
java.io.IOException

writeResponse

public void writeResponse(SimpleResponse response)
                   throws java.io.IOException
Throws:
java.io.IOException

getSocketTimeout

public int getSocketTimeout()
                     throws java.net.SocketException
Throws:
java.net.SocketException

setSocketTimeout

public void setSocketTimeout(int timeout)
                      throws java.net.SocketException
Throws:
java.net.SocketException