|
|||||||||
| Home >> All >> org >> apache >> [ http overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.http
Interface HttpServerConnection

- All Superinterfaces:
- HttpConnection
- public interface HttpServerConnection
- extends HttpConnection
An HTTP connection for use on the server side. Requests are received, responses are sent.
- Since:
- 4.0
- Version:
- $Revision: 391135 $
| Method Summary | |
void |
bind(java.net.Socket socket,
org.apache.http.params.HttpParams params)
Binds this connection to an underlying socket. |
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(org.apache.http.params.HttpParams params)
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, isOpen, isStale, shutdown |
| Method Detail |
bind
public void bind(java.net.Socket socket, org.apache.http.params.HttpParams params) throws java.io.IOException
- Binds this connection to an underlying socket.
receiveRequestHeader
public HttpRequest receiveRequestHeader(org.apache.http.params.HttpParams params) throws HttpException, java.io.IOException
- Receives the request line and all headers available from this connection.
The caller should examine the returned request and decide if to receive a
request entity as well.
receiveRequestEntity
public void receiveRequestEntity(HttpEntityEnclosingRequest request) throws HttpException, java.io.IOException
- Receives the next request entity available from this connection and attaches it to
an existing request.
sendResponseHeader
public void sendResponseHeader(HttpResponse response) throws HttpException, java.io.IOException
- Sends the response line and headers of a response over this connection.
sendResponseEntity
public void sendResponseEntity(HttpResponse response) throws HttpException, java.io.IOException
- Sends the response entity of a response over this connection.
flush
public void flush()
throws java.io.IOException
- Sends all pending buffered data over this connection.
|
|||||||||
| Home >> All >> org >> apache >> [ http overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC