public class HttpServerConnection extends Object
Constructor and Description |
---|
HttpServerConnection(Socket socket,
String encoding,
HttpConnector connector) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
int |
getSocketTimeout() |
ResponseWriter |
getWriter()
Returns the ResponseWriter used to write the output to the socket.
|
boolean |
isKeepAlive() |
boolean |
isOpen() |
HttpRequest |
readRequest() |
HttpResponse |
readResponse() |
void |
setKeepAlive(boolean b) |
void |
setSocketTimeout(int timeout) |
void |
writeRequest(HttpRequest request) |
void |
writeResponse(HttpResponse response) |
public HttpServerConnection(Socket socket, String encoding, HttpConnector connector) throws IOException
IOException
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
public void setSocketTimeout(int timeout) throws SocketException
SocketException
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.