|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.nio.reactor.AbstractIODispatch<DefaultNHttpClientConnection> org.apache.http.impl.nio.DefaultHttpClientIODispatch<H>
H
- an implementation of NHttpClientEventHandler
.@Contract(threading=IMMUTABLE_CONDITIONAL) public class DefaultHttpClientIODispatch<H extends NHttpClientEventHandler>
Default IOEventDispatch
implementation
that supports both plain (non-encrypted) and SSL encrypted client side HTTP
connections.
Field Summary |
---|
Fields inherited from interface org.apache.http.nio.reactor.IOEventDispatch |
---|
CONNECTION_KEY |
Method Summary | ||
---|---|---|
static
|
create(T handler,
SSLContext sslContext,
ConnectionConfig config)
Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler. |
|
static
|
create(T handler,
SSLContext sslContext,
SSLSetupHandler sslHandler,
ConnectionConfig config)
Creates a new instance of this class to be used for dispatching I/O event notifications to the given protocol handler. |
|
protected DefaultNHttpClientConnection |
createConnection(IOSession session)
|
|
NHttpConnectionFactory<? extends DefaultNHttpClientConnection> |
getConnectionFactory()
Gets the connection factory used to construct this dispatch. |
|
H |
getHandler()
Gets the handler used to construct this dispatch. |
|
protected void |
onClosed(DefaultNHttpClientConnection conn)
|
|
protected void |
onConnected(DefaultNHttpClientConnection conn)
|
|
protected void |
onException(DefaultNHttpClientConnection conn,
IOException ex)
|
|
protected void |
onInputReady(DefaultNHttpClientConnection conn)
|
|
protected void |
onOutputReady(DefaultNHttpClientConnection conn)
|
|
protected void |
onTimeout(DefaultNHttpClientConnection conn)
|
Methods inherited from class org.apache.http.impl.nio.reactor.AbstractIODispatch |
---|
connected, disconnected, inputReady, outputReady, timeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultHttpClientIODispatch(H handler, NHttpConnectionFactory<? extends DefaultNHttpClientConnection> connFactory)
handler
- the client protocol handler.connFactory
- HTTP client connection factory.@Deprecated public DefaultHttpClientIODispatch(H handler, HttpParams params)
DefaultHttpClientIODispatch(
NHttpClientEventHandler, ConnectionConfig)
@Deprecated public DefaultHttpClientIODispatch(H handler, SSLContext sslContext, SSLSetupHandler sslHandler, HttpParams params)
DefaultHttpClientIODispatch(
NHttpClientEventHandler, SSLContext, SSLSetupHandler, ConnectionConfig)
@Deprecated public DefaultHttpClientIODispatch(H handler, SSLContext sslContext, HttpParams params)
DefaultHttpClientIODispatch(
NHttpClientEventHandler, SSLContext, ConnectionConfig)
public DefaultHttpClientIODispatch(H handler, ConnectionConfig config)
public DefaultHttpClientIODispatch(H handler, SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
public DefaultHttpClientIODispatch(H handler, SSLContext sslContext, ConnectionConfig config)
Method Detail |
---|
public static <T extends NHttpClientEventHandler> DefaultHttpClientIODispatch<T> create(T handler, SSLContext sslContext, ConnectionConfig config)
handler
- the client protocol handler.sslContext
- an SSLContext or null (for a plain text connection.)config
- a connection configuration
public static <T extends NHttpClientEventHandler> DefaultHttpClientIODispatch<T> create(T handler, SSLContext sslContext, SSLSetupHandler sslHandler, ConnectionConfig config)
handler
- the client protocol handler.sslContext
- an SSLContext or null (for a plain text connection.)sslHandler
- customizes various aspects of the TLS/SSL protocol.config
- a connection configuration
protected DefaultNHttpClientConnection createConnection(IOSession session)
createConnection
in class AbstractIODispatch<DefaultNHttpClientConnection>
public NHttpConnectionFactory<? extends DefaultNHttpClientConnection> getConnectionFactory()
public H getHandler()
protected void onConnected(DefaultNHttpClientConnection conn)
onConnected
in class AbstractIODispatch<DefaultNHttpClientConnection>
protected void onClosed(DefaultNHttpClientConnection conn)
onClosed
in class AbstractIODispatch<DefaultNHttpClientConnection>
protected void onException(DefaultNHttpClientConnection conn, IOException ex)
onException
in class AbstractIODispatch<DefaultNHttpClientConnection>
protected void onInputReady(DefaultNHttpClientConnection conn)
onInputReady
in class AbstractIODispatch<DefaultNHttpClientConnection>
protected void onOutputReady(DefaultNHttpClientConnection conn)
onOutputReady
in class AbstractIODispatch<DefaultNHttpClientConnection>
protected void onTimeout(DefaultNHttpClientConnection conn)
onTimeout
in class AbstractIODispatch<DefaultNHttpClientConnection>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |