Package org.eclipse.jetty.io.ssl
Class SslClientConnectionFactory
- java.lang.Object
-
- org.eclipse.jetty.io.ssl.SslClientConnectionFactory
-
- All Implemented Interfaces:
ClientConnectionFactory
public class SslClientConnectionFactory extends Object implements ClientConnectionFactory
-
-
Field Summary
Fields Modifier and Type Field Description static StringSSL_CONTEXT_FACTORY_CONTEXT_KEYstatic StringSSL_ENGINE_CONTEXT_KEYstatic StringSSL_PEER_HOST_CONTEXT_KEYstatic StringSSL_PEER_PORT_CONTEXT_KEY-
Fields inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
CONNECTOR_CONTEXT_KEY
-
-
Constructor Summary
Constructors Constructor Description SslClientConnectionFactory(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory, ByteBufferPool byteBufferPool, Executor executor, ClientConnectionFactory connectionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connectioncustomize(Connection connection, Map<String,Object> context)booleanisAllowMissingCloseMessage()booleanisDirectBuffersForDecryption()booleanisDirectBuffersForEncryption()ConnectionnewConnection(EndPoint endPoint, Map<String,Object> context)protected SslConnectionnewSslConnection(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, SSLEngine engine)voidsetAllowMissingCloseMessage(boolean allowMissingCloseMessage)voidsetDirectBuffersForDecryption(boolean useDirectBuffers)voidsetDirectBuffersForEncryption(boolean useDirectBuffers)
-
-
-
Field Detail
-
SSL_CONTEXT_FACTORY_CONTEXT_KEY
public static final String SSL_CONTEXT_FACTORY_CONTEXT_KEY
- See Also:
- Constant Field Values
-
SSL_PEER_HOST_CONTEXT_KEY
public static final String SSL_PEER_HOST_CONTEXT_KEY
- See Also:
- Constant Field Values
-
SSL_PEER_PORT_CONTEXT_KEY
public static final String SSL_PEER_PORT_CONTEXT_KEY
- See Also:
- Constant Field Values
-
SSL_ENGINE_CONTEXT_KEY
public static final String SSL_ENGINE_CONTEXT_KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SslClientConnectionFactory
public SslClientConnectionFactory(org.eclipse.jetty.util.ssl.SslContextFactory sslContextFactory, ByteBufferPool byteBufferPool, Executor executor, ClientConnectionFactory connectionFactory)
-
-
Method Detail
-
setDirectBuffersForEncryption
public void setDirectBuffersForEncryption(boolean useDirectBuffers)
-
setDirectBuffersForDecryption
public void setDirectBuffersForDecryption(boolean useDirectBuffers)
-
isDirectBuffersForDecryption
public boolean isDirectBuffersForDecryption()
-
isDirectBuffersForEncryption
public boolean isDirectBuffersForEncryption()
-
isAllowMissingCloseMessage
public boolean isAllowMissingCloseMessage()
-
setAllowMissingCloseMessage
public void setAllowMissingCloseMessage(boolean allowMissingCloseMessage)
-
newConnection
public Connection newConnection(EndPoint endPoint, Map<String,Object> context) throws IOException
- Specified by:
newConnectionin interfaceClientConnectionFactory- Parameters:
endPoint- theEndPointto link the newly created connection tocontext- the context data to create the connection- Returns:
- a new
Connection - Throws:
IOException- if the connection cannot be created
-
newSslConnection
protected SslConnection newSslConnection(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, SSLEngine engine)
-
customize
public Connection customize(Connection connection, Map<String,Object> context)
- Specified by:
customizein interfaceClientConnectionFactory
-
-