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, shutdown
HttpRequest receiveRequestHeader() throws HttpException, java.io.IOException
HttpException
- in case of HTTP protocol violationjava.io.IOException
- in case of an I/O errorvoid receiveRequestEntity(HttpEntityEnclosingRequest request) throws HttpException, java.io.IOException
request
- the request to attach the entity to.HttpException
- in case of HTTP protocol violationjava.io.IOException
- in case of an I/O errorvoid sendResponseHeader(HttpResponse response) throws HttpException, java.io.IOException
response
- the response whose headers to send.HttpException
- in case of HTTP protocol violationjava.io.IOException
- in case of an I/O errorvoid sendResponseEntity(HttpResponse response) throws HttpException, java.io.IOException
response
- the response whose entity to send.HttpException
- in case of HTTP protocol violationjava.io.IOException
- in case of an I/O errorvoid flush() throws java.io.IOException
java.io.IOException
- in case of an I/O error