java.lang.Object | |
↳ | org.apache.http.impl.nio.DefaultClientIOEventDispatch |
Default implementation of IOEventDispatch
interface for plain
(unencrypted) client-side HTTP connections.
The following parameters can be used to customize the behavior of this class:
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
allocator | |||||||||||
handler | |||||||||||
params |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of this class to be used for dispatching I/O event
notifications to the given protocol handler.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Triggered after the given session has been just created.
| |||||||||||
Triggered when the given session has been terminated.
| |||||||||||
Triggered when the given session has input pending.
| |||||||||||
Triggered when the given session is ready for output.
| |||||||||||
Triggered when the given session as timed out.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an instance of
HeapByteBufferAllocator to be used
by HTTP connections for allocating java.nio.ByteBuffer objects. | |||||||||||
Creates an instance of
DefaultNHttpClientConnection based on the
given IOSession . | |||||||||||
Creates an instance of DefaultHttpResponseFactory to be used
by HTTP connections for creating HttpResponse objects.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.http.nio.reactor.IOEventDispatch
|
Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler.
handler | the client protocol handler. |
---|---|
params | HTTP parameters. |
Triggered after the given session has been just created.
session | the I/O session. |
---|
Triggered when the given session has been terminated.
session | the I/O session. |
---|
Triggered when the given session has input pending.
session | the I/O session. |
---|
Triggered when the given session is ready for output.
session | the I/O session. |
---|
Triggered when the given session as timed out.
session | the I/O session. |
---|
Creates an instance of HeapByteBufferAllocator
to be used
by HTTP connections for allocating java.nio.ByteBuffer objects.
This method can be overridden in a super class in order to provide
a different implementation of the ByteBufferAllocator
interface.
Creates an instance of DefaultNHttpClientConnection
based on the
given IOSession
.
This method can be overridden in a super class in order to provide
a different implementation of the NHttpClientIOTarget
interface.
session | the underlying I/O session. |
---|
Creates an instance of DefaultHttpResponseFactory to be used by HTTP connections for creating HttpResponse objects.
This method can be overridden in a super class in order to provide a different implementation of the HttpResponseFactory interface.