java.lang.Object | ||
↳ | org.apache.http.impl.nio.NHttpConnectionBase | |
↳ | org.apache.http.impl.nio.DefaultNHttpClientConnection |
Default implementation of the NHttpClientConnection
interface.
The following parameters can be used to customize the behavior of this class:
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.apache.http.nio.NHttpConnection
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
requestWriter | |||||||||||
responseParser |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.impl.nio.NHttpConnectionBase
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of this class given the underlying I/O session.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Triggered when the connection is ready to consume input.
| |||||||||||
Returns
true if an HTTP request has been submitted to the
target server. | |||||||||||
Triggered when the connection is ready to produce output.
| |||||||||||
Resets output state.
| |||||||||||
Resets input state.
| |||||||||||
Submits HttpRequest to be sent to the target server.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of
NHttpMessageWriter to be used
by this connection for writing out outgoing HttpRequest messages. | |||||||||||
Creates an instance of
NHttpMessageParser to be used
by this connection for parsing incoming HttpResponse messages. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.http.impl.nio.NHttpConnectionBase
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.HttpConnection
| |||||||||||
From interface
org.apache.http.HttpInetConnection
| |||||||||||
From interface
org.apache.http.nio.IOControl
| |||||||||||
From interface
org.apache.http.nio.NHttpClientConnection
| |||||||||||
From interface
org.apache.http.nio.NHttpClientIOTarget
| |||||||||||
From interface
org.apache.http.nio.NHttpConnection
| |||||||||||
From interface
org.apache.http.nio.reactor.SessionBufferStatus
|
Creates a new instance of this class given the underlying I/O session.
session | the underlying I/O session. |
---|---|
responseFactory | HTTP response factory. |
allocator | byte buffer allocator. |
params | HTTP parameters. |
Triggered when the connection is ready to consume input.
handler | the client protocol handler. |
---|
Returns true
if an HTTP request has been submitted to the
target server.
true
if an HTTP request has been submitted,
false
otherwise.
Triggered when the connection is ready to produce output.
handler | the client protocol handler. |
---|
Resets output state. This method can be used to prematurely terminate processing of the incoming HTTP response.
Resets input state. This method can be used to prematurely terminate processing of the outgoing HTTP request.
Submits HttpRequest to be sent to the target server.
request | HTTP request |
---|
HttpException | |
---|---|
IOException |
Creates an instance of NHttpMessageWriter
to be used
by this connection for writing out outgoing HttpRequest messages.
This method can be overridden by a super class in order to provide
a different implementation of the NHttpMessageWriter
interface.
Creates an instance of NHttpMessageParser
to be used
by this connection for parsing incoming HttpResponse messages.
This method can be overridden in a super class in order to provide
a different implementation of the NHttpMessageParser
interface.