|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An HTTP connection for use on the server side. Requests are received, responses are sent.
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(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, getSocketTimeout, isOpen, isStale, setSocketTimeout, shutdown |
Method Detail |
public HttpRequest receiveRequestHeader(HttpParams params) throws HttpException, java.io.IOException
params
- the parameters in effect for this connection
HttpException
java.io.IOException
public void receiveRequestEntity(HttpEntityEnclosingRequest request) throws HttpException, java.io.IOException
request
- the request to attach the entity to.
HttpException
java.io.IOException
public void sendResponseHeader(HttpResponse response) throws HttpException, java.io.IOException
response
- the response whose headers to send.
HttpException
java.io.IOException
public void sendResponseEntity(HttpResponse response) throws HttpException, java.io.IOException
response
- the response whose entity to send.
HttpException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |