org.apache.axis2.transport.http.server
Class SimpleHttpServerConnection
java.lang.Object
org.apache.axis2.transport.http.server.SimpleHttpServerConnection
- public class SimpleHttpServerConnection
- extends java.lang.Object
A connection to the SimpleHttpServer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleHttpServerConnection
public SimpleHttpServerConnection(java.net.Socket socket)
throws java.io.IOException
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