|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.transport.http.HttpServerConnection
public class HttpServerConnection
A connection to the SimpleHttpServer.
Constructor Summary | |
---|---|
HttpServerConnection(Socket socket,
String encoding,
HttpConnector connector)
|
Method Summary | |
---|---|
void |
close()
|
InputStream |
getInputStream()
|
OutputStream |
getOutputStream()
|
int |
getSocketReceiveBufferSize()
Gets the value of the SO_RCVBUF for the underlying socket. |
int |
getSocketTimeout()
Returns the value of the SO_TIMEOUT for the underlying socket. |
ResponseWriter |
getWriter()
Returns the ResponseWriter used to write the output to the socket. |
boolean |
isKeepAlive()
|
boolean |
isOpen()
|
boolean |
isSocketKeepAlive()
Tests if SO_KEEPALIVE is enabled in the underlying socket. |
boolean |
isSocketTcpNoDelay()
Tests if TCP_NODELAY is enabled in the underlying socket. |
HttpRequest |
readRequest()
|
HttpResponse |
readResponse()
|
void |
setKeepAlive(boolean b)
|
void |
setSocketTimeout(int timeout)
|
void |
writeRequest(HttpRequest request)
|
void |
writeResponse(HttpResponse response)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpServerConnection(Socket socket, String encoding, HttpConnector connector) throws IOException
IOException
Method Detail |
---|
public void close()
public boolean isOpen()
public void setKeepAlive(boolean b)
public boolean isKeepAlive()
public InputStream getInputStream()
public OutputStream getOutputStream()
public ResponseWriter getWriter() throws UnsupportedEncodingException
UnsupportedEncodingException
public HttpRequest readRequest() throws IOException
IOException
public HttpResponse readResponse() throws IOException
IOException
public void writeRequest(HttpRequest request) throws IOException
IOException
public void writeResponse(HttpResponse response) throws IOException, TransformerException
IOException
TransformerException
public int getSocketTimeout() throws SocketException
SocketException
- If there is an error in the underlying protocol.public void setSocketTimeout(int timeout) throws SocketException
SocketException
public boolean isSocketKeepAlive() throws SocketException
boolean
indicating whether or not SO_KEEPALIVE is enabled.
SocketException
- If there is an error in the underlying protocol.public boolean isSocketTcpNoDelay() throws SocketException
boolean
indicating whether or not TCP_NODELAY is enabled.
SocketException
- If there is an error in the underlying protocol.public int getSocketReceiveBufferSize() throws SocketException
SocketException
- If there is an error in the underlying protocol.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |