java.lang.Object | |
↳ | org.apache.http.impl.AbstractHttpClientConnection |
Known Direct Subclasses |
Known Indirect Subclasses |
Abstract client-side HTTP connection capable of transmitting and receiving data
using arbitrary SessionInputBuffer
and SessionOutputBuffer
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Writes out all pending buffered data over the open connection.
| |||||||||||
Returns a collection of connection metrcis
| |||||||||||
Checks if response data is available from the connection.
| |||||||||||
Checks whether this connection has gone down.
| |||||||||||
Receives the next response entity available from this connection and
attaches it to an existing HttpResponse object.
| |||||||||||
Receives the request line and headers of the next response available from
this connection.
| |||||||||||
Sends the request entity over the connection.
| |||||||||||
Sends the request line and all headers over the connection.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
From interface org.apache.http.HttpClientConnection
| |||||||||||
From interface org.apache.http.HttpConnection
|
Writes out all pending buffered data over the open connection.
IOException |
---|
Returns a collection of connection metrcis
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.
timeout | the maximum time in milliseconds to wait for data |
---|
timeout
milliseconds.IOException |
---|
Checks whether this connection has gone down. Network connections may get closed during some time of inactivity for several reasons. The next time a read is attempted on such a connection it will throw an IOException. This method tries to alleviate this inconvenience by trying to find out if a connection is still usable. Implementations may do that by attempting a read with a very small timeout. Thus this method may block for a small amount of time before returning a result. It is therefore an expensive operation.
true
if attempts to use this connection are
likely to succeed, or false
if they are likely
to fail and this connection should be closed
Receives the next response entity available from this connection and attaches it to an existing HttpResponse object.
response | the response to attach the entity to |
---|
HttpException | |
---|---|
IOException |
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.
HttpException | |
---|---|
IOException |
Sends the request entity over the connection.
request | the request whose entity to send. |
---|
HttpException | |
---|---|
IOException |
Sends the request line and all headers over the connection.
request | the request whose headers to send. |
---|
HttpException | |
---|---|
IOException |