|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpServerConnection
A server-side HTTP connection, which can be used for receiving requests and sending responses.
| Method Summary | |
|---|---|
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. |
| Methods inherited from interface org.apache.http.HttpConnection |
|---|
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown |
| Method Detail |
|---|
HttpRequest receiveRequestHeader()
throws HttpException,
IOException
HttpException - in case of HTTP protocol violation
IOException - in case of an I/O error
void receiveRequestEntity(HttpEntityEnclosingRequest request)
throws HttpException,
IOException
request - the request to attach the entity to.
HttpException - in case of HTTP protocol violation
IOException - in case of an I/O error
void sendResponseHeader(HttpResponse response)
throws HttpException,
IOException
response - the response whose headers to send.
HttpException - in case of HTTP protocol violation
IOException - in case of an I/O error
void sendResponseEntity(HttpResponse response)
throws HttpException,
IOException
response - the response whose entity to send.
HttpException - in case of HTTP protocol violation
IOException - in case of an I/O error
void flush()
throws IOException
IOException - in case of an I/O error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||