public class SslClientConnectionFactory extends Object implements ClientConnectionFactory
Modifier and Type | Field and Description |
---|---|
static String |
SSL_CONTEXT_FACTORY_CONTEXT_KEY |
static String |
SSL_ENGINE_CONTEXT_KEY |
static String |
SSL_PEER_HOST_CONTEXT_KEY |
static String |
SSL_PEER_PORT_CONTEXT_KEY |
Constructor and Description |
---|
SslClientConnectionFactory(SslContextFactory sslContextFactory,
ByteBufferPool byteBufferPool,
Executor executor,
ClientConnectionFactory connectionFactory) |
Modifier and Type | Method and Description |
---|---|
Connection |
newConnection(EndPoint endPoint,
Map<String,Object> context) |
protected SslConnection |
newSslConnection(ByteBufferPool byteBufferPool,
Executor executor,
EndPoint endPoint,
SSLEngine engine) |
public static final String SSL_CONTEXT_FACTORY_CONTEXT_KEY
public static final String SSL_PEER_HOST_CONTEXT_KEY
public static final String SSL_PEER_PORT_CONTEXT_KEY
public static final String SSL_ENGINE_CONTEXT_KEY
public SslClientConnectionFactory(SslContextFactory sslContextFactory, ByteBufferPool byteBufferPool, Executor executor, ClientConnectionFactory connectionFactory)
public Connection newConnection(EndPoint endPoint, Map<String,Object> context) throws IOException
newConnection
in interface ClientConnectionFactory
endPoint
- the EndPoint
to link the newly created connection tocontext
- the context data to create the connectionConnection
IOException
- if the connection cannot be createdprotected SslConnection newSslConnection(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, SSLEngine engine)
Copyright © 1995-2016 Webtide. All Rights Reserved.