| |
|
| org.apache.http.HttpClientConnection
All known Subclasses: org.apache.http.impl.AbstractHttpClientConnection,
HttpClientConnection | public interface HttpClientConnection extends HttpConnection(Code) | | An HTTP connection for use on the client side.
It is used for sending requests and receiving responses.
author: Oleg Kalnichevski author: version: $Revision: 542199 $ since: 4.0 |
isResponseAvailable | boolean isResponseAvailable(int timeout) throws IOException(Code) | | Checks if response data is available from the connection. May wait for
the specified time until some data becomes available. Note that some
implementations may completely ignore the timeout parameter.
Parameters: timeout - the maximum time in milliseconds to wait for data true if data is available; false if there was no data availableeven after waiting for timeout milliseconds. throws: IOException - if an error happens on the connection |
receiveResponseEntity | void receiveResponseEntity(HttpResponse response) throws HttpException, IOException(Code) | | Receives the next response entity available from this connection and
attaches it to an existing HttpResponse object.
Parameters: response - the response to attach the entity to throws: HttpException - throws: IOException - |
receiveResponseHeader | HttpResponse receiveResponseHeader() throws HttpException, IOException(Code) | | Receives the request line and headers of the next response available from
this connection. The caller should examine the HttpResponse object to
find out if it should try to receive a response entity as well.
a new HttpResponse object with status line and headersinitialized. throws: HttpException - throws: IOException - |
|
|
|