public class SslClientConnectionFactory extends Object implements ClientConnectionFactory
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
CONNECTOR_CONTEXT_KEY| 构造器和说明 |
|---|
SslClientConnectionFactory(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory,
ByteBufferPool byteBufferPool,
Executor executor,
ClientConnectionFactory connectionFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
customize(Connection connection,
Map<String,Object> context) |
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 SslClientConnectionFactory(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory,
ByteBufferPool byteBufferPool,
Executor executor,
ClientConnectionFactory connectionFactory)
public Connection newConnection(EndPoint endPoint, Map<String,Object> context) throws IOException
newConnection 在接口中 ClientConnectionFactoryendPoint - the EndPoint to link the newly created connection tocontext - the context data to create the connectionConnectionIOException - if the connection cannot be createdprotected SslConnection newSslConnection(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, SSLEngine engine)
public Connection customize(Connection connection, Map<String,Object> context)
customize 在接口中 ClientConnectionFactoryCopyright © 2017. All rights reserved.