public interface HttpServerConnection extends HttpConnection
| Modifier and Type | Method and Description |
|---|---|
void |
flush()
Sends all pending buffered data over this connection.
|
void |
receiveRequestEntity(HttpEntityEnclosingRequest request)
Receives the next request entity available from this connection and attaches it to
an existing request.
|
HttpRequest |
receiveRequestHeader()
Receives the request line and all headers available from this connection.
|
void |
sendResponseEntity(HttpResponse response)
Sends the response entity of a response over this connection.
|
void |
sendResponseHeader(HttpResponse response)
Sends the response line and headers of a response over this connection.
|
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdownHttpRequest receiveRequestHeader() throws HttpException, IOException
HttpException - in case of HTTP protocol violationIOException - in case of an I/O errorvoid receiveRequestEntity(HttpEntityEnclosingRequest request) throws HttpException, IOException
request - the request to attach the entity to.HttpException - in case of HTTP protocol violationIOException - in case of an I/O errorvoid sendResponseHeader(HttpResponse response) throws HttpException, IOException
response - the response whose headers to send.HttpException - in case of HTTP protocol violationIOException - in case of an I/O errorvoid sendResponseEntity(HttpResponse response) throws HttpException, IOException
response - the response whose entity to send.HttpException - in case of HTTP protocol violationIOException - in case of an I/O errorvoid flush()
throws IOException
IOException - in case of an I/O errorCopyright © 2005–2013 The Apache Software Foundation. All rights reserved.