org.apache.synapse.transport.nhttp
Class SSLClientIOEventDispatch
java.lang.Object
org.apache.http.impl.nio.SSLClientIOEventDispatch
org.apache.synapse.transport.nhttp.SSLClientIOEventDispatch
- All Implemented Interfaces:
- org.apache.http.nio.reactor.IOEventDispatch
public class SSLClientIOEventDispatch
- extends org.apache.http.impl.nio.SSLClientIOEventDispatch
This custom SSLClientIOEventDispatch can keep a map of SSLContexts and use the correct
SSLContext when connecting to different servers. If a SSLContext cannot be found for a
particular server from the specified map it uses the default SSLContext.
Fields inherited from class org.apache.http.impl.nio.SSLClientIOEventDispatch |
handler, params, sslcontext, sslHandler |
Constructor Summary |
SSLClientIOEventDispatch(org.apache.http.nio.NHttpClientHandler handler,
SSLContext sslcontext,
org.apache.http.impl.nio.reactor.SSLIOSessionHandler sslHandler,
org.apache.http.params.HttpParams params)
|
Method Summary |
protected org.apache.http.nio.NHttpClientIOTarget |
createConnection(org.apache.http.nio.reactor.IOSession session)
|
protected org.apache.http.impl.nio.reactor.SSLIOSession |
createSSLIOSession(org.apache.http.nio.reactor.IOSession ioSession,
SSLContext sslContext,
org.apache.http.impl.nio.reactor.SSLIOSessionHandler sslioSessionHandler)
|
void |
setContextMap(Map<String,SSLContext> contextMap)
|
Methods inherited from class org.apache.http.impl.nio.SSLClientIOEventDispatch |
connected, createByteBufferAllocator, createHttpResponseFactory, disconnected, inputReady, outputReady, timeout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSLClientIOEventDispatch
public SSLClientIOEventDispatch(org.apache.http.nio.NHttpClientHandler handler,
SSLContext sslcontext,
org.apache.http.impl.nio.reactor.SSLIOSessionHandler sslHandler,
org.apache.http.params.HttpParams params)
setContextMap
public void setContextMap(Map<String,SSLContext> contextMap)
createSSLIOSession
protected org.apache.http.impl.nio.reactor.SSLIOSession createSSLIOSession(org.apache.http.nio.reactor.IOSession ioSession,
SSLContext sslContext,
org.apache.http.impl.nio.reactor.SSLIOSessionHandler sslioSessionHandler)
- Overrides:
createSSLIOSession
in class org.apache.http.impl.nio.SSLClientIOEventDispatch
createConnection
protected org.apache.http.nio.NHttpClientIOTarget createConnection(org.apache.http.nio.reactor.IOSession session)
- Overrides:
createConnection
in class org.apache.http.impl.nio.SSLClientIOEventDispatch
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.