java.lang.Object | |
↳ | org.apache.http.impl.AbstractHttpServerConnection |
Known Direct Subclasses |
Known Indirect Subclasses |
Abstract server-side HTTP connection capable of transmitting and receiving data
using arbitrary SessionInputBuffer
and SessionOutputBuffer
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sends all pending buffered data over this connection.
| |||||||||||
Returns a collection of connection metrcis
| |||||||||||
Checks whether this connection has gone down.
| |||||||||||
Receives the next request entity available from this connection and attaches it to
an existing request.
| |||||||||||
Receives the request line and all headers available from this connection.
| |||||||||||
Sends the response entity of a response over this connection.
| |||||||||||
Sends the response line and headers of a response over this connection.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
From interface org.apache.http.HttpConnection
| |||||||||||
From interface org.apache.http.HttpServerConnection
|
Sends all pending buffered data over this connection.
IOException |
---|
Returns a collection of connection metrcis
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 request entity available from this connection and attaches it to an existing request.
request | the request to attach the entity to. |
---|
HttpException | |
---|---|
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.
HttpException | |
---|---|
IOException |
Sends the response entity of a response over this connection.
response | the response whose entity to send. |
---|
HttpException | |
---|---|
IOException |
Sends the response line and headers of a response over this connection.
response | the response whose headers to send. |
---|
HttpException | |
---|---|
IOException |