Class SslClientConnectionFactory
java.lang.Object
org.eclipse.jetty.io.ssl.SslClientConnectionFactory
- All Implemented Interfaces:
ClientConnectionFactory
A ClientConnectionFactory that creates client-side SslConnection instances.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface ClientConnectionFactory
ClientConnectionFactory.Decorator, ClientConnectionFactory.Info -
Field Summary
FieldsFields inherited from interface ClientConnectionFactory
CLIENT_CONTEXT_KEY -
Constructor Summary
ConstructorsConstructorDescriptionSslClientConnectionFactory(SslContextFactory.Client sslContextFactory, ByteBufferPool byteBufferPool, Executor executor, ClientConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptioncustomize(Connection connection, Map<String, Object> context) booleanbooleanbooleannewConnection(EndPoint endPoint, Map<String, Object> context) protected SslConnectionnewSslConnection(EndPoint endPoint, SSLEngine engine) voidsetDirectBuffersForDecryption(boolean useDirectBuffers) voidsetDirectBuffersForEncryption(boolean useDirectBuffers) voidsetRequireCloseMessage(boolean requireCloseMessage)
-
Field Details
-
SSL_ENGINE_CONTEXT_KEY
- See Also:
-
-
Constructor Details
-
SslClientConnectionFactory
public SslClientConnectionFactory(SslContextFactory.Client sslContextFactory, ByteBufferPool byteBufferPool, Executor executor, ClientConnectionFactory connectionFactory)
-
-
Method Details
-
getSslContextFactory
-
getByteBufferPool
-
getExecutor
-
getClientConnectionFactory
-
setDirectBuffersForEncryption
public void setDirectBuffersForEncryption(boolean useDirectBuffers) -
setDirectBuffersForDecryption
public void setDirectBuffersForDecryption(boolean useDirectBuffers) -
isDirectBuffersForDecryption
public boolean isDirectBuffersForDecryption() -
isDirectBuffersForEncryption
public boolean isDirectBuffersForEncryption() -
isRequireCloseMessage
public boolean isRequireCloseMessage()- Returns:
- whether peers must send the TLS
close_notifymessage - See Also:
-
setRequireCloseMessage
public void setRequireCloseMessage(boolean requireCloseMessage) - Parameters:
requireCloseMessage- whether peers must send the TLSclose_notifymessage- See Also:
-
newConnection
- 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
-
customize
- Specified by:
customizein interfaceClientConnectionFactory
-