public class SslClientConnectionFactory extends java.lang.Object implements ClientConnectionFactory
| Modifier and Type | Field and Description |
|---|---|
private boolean |
allowMissingCloseMessage |
private ByteBufferPool |
byteBufferPool |
private ClientConnectionFactory |
connectionFactory |
private java.util.concurrent.Executor |
executor |
static java.lang.String |
SSL_CONTEXT_FACTORY_CONTEXT_KEY |
static java.lang.String |
SSL_ENGINE_CONTEXT_KEY |
static java.lang.String |
SSL_PEER_HOST_CONTEXT_KEY |
static java.lang.String |
SSL_PEER_PORT_CONTEXT_KEY |
private SslContextFactory |
sslContextFactory |
CONNECTOR_CONTEXT_KEY| Constructor and Description |
|---|
SslClientConnectionFactory(SslContextFactory sslContextFactory,
ByteBufferPool byteBufferPool,
java.util.concurrent.Executor executor,
ClientConnectionFactory connectionFactory) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
customize(Connection connection,
java.util.Map<java.lang.String,java.lang.Object> context) |
boolean |
isAllowMissingCloseMessage() |
Connection |
newConnection(EndPoint endPoint,
java.util.Map<java.lang.String,java.lang.Object> context) |
protected SslConnection |
newSslConnection(ByteBufferPool byteBufferPool,
java.util.concurrent.Executor executor,
EndPoint endPoint,
javax.net.ssl.SSLEngine engine) |
void |
setAllowMissingCloseMessage(boolean allowMissingCloseMessage) |
public static final java.lang.String SSL_CONTEXT_FACTORY_CONTEXT_KEY
public static final java.lang.String SSL_PEER_HOST_CONTEXT_KEY
public static final java.lang.String SSL_PEER_PORT_CONTEXT_KEY
public static final java.lang.String SSL_ENGINE_CONTEXT_KEY
private final SslContextFactory sslContextFactory
private final ByteBufferPool byteBufferPool
private final java.util.concurrent.Executor executor
private final ClientConnectionFactory connectionFactory
private boolean allowMissingCloseMessage
public SslClientConnectionFactory(SslContextFactory sslContextFactory, ByteBufferPool byteBufferPool, java.util.concurrent.Executor executor, ClientConnectionFactory connectionFactory)
public boolean isAllowMissingCloseMessage()
public void setAllowMissingCloseMessage(boolean allowMissingCloseMessage)
public Connection newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context) throws java.io.IOException
newConnection in interface ClientConnectionFactoryendPoint - the EndPoint to link the newly created connection tocontext - the context data to create the connectionConnectionjava.io.IOException - if the connection cannot be createdprotected SslConnection newSslConnection(ByteBufferPool byteBufferPool, java.util.concurrent.Executor executor, EndPoint endPoint, javax.net.ssl.SSLEngine engine)
public Connection customize(Connection connection, java.util.Map<java.lang.String,java.lang.Object> context)
customize in interface ClientConnectionFactory