org.apache.http.nio.NHttpConnection |
Known Indirect Subclasses |
Abstract non-blocking HTTP connection interface. Each connection contains an
HTTP execution context, which can be used to maintain a processing state,
as well as the actual HttpRequest and HttpResponse that are
being transmitted over this connection. Both the request and
the response objects can be null
if there is no incoming or
outgoing message currently being transferred.
Please note non-blocking HTTP connections are stateful and not thread safe.
Input / output operations on non-blocking HTTP connections should be
restricted to the dispatch events triggered by the I/O event dispatch thread.
However, the IOControl
interface is fully threading safe and can be
manipulated from any thread.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ACTIVE | ||||||||||
int | CLOSED | ||||||||||
int | CLOSING |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an HTTP execution context associated with this connection.
| |||||||||||
Returns the current HTTP request if one is being received / transmitted.
| |||||||||||
Returns the current HTTP response if one is being received / transmitted.
| |||||||||||
Returns status of the connection:
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.apache.http.HttpConnection
| |||||||||||
From interface
org.apache.http.nio.IOControl
|
Returns an HTTP execution context associated with this connection.
Returns the current HTTP request if one is being received / transmitted.
Otherwise returns null
.
null
otherwise.
Returns the current HTTP response if one is being received / transmitted. Otherwise returns null.
null
otherwise.