Package org.eclipse.jetty.io.ssl
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 classes/interfaces inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
ClientConnectionFactory.Decorator, ClientConnectionFactory.Info
-
Field Summary
Fields inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
CLIENT_CONTEXT_KEY
-
Constructor Summary
ConstructorDescriptionSslClientConnectionFactory
(SslContextFactory sslContextFactory, ByteBufferPool byteBufferPool, Executor executor, ClientConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptioncustomize
(Connection connection, Map<String, Object> context) boolean
boolean
boolean
newConnection
(EndPoint endPoint, Map<String, Object> context) protected SslConnection
newSslConnection
(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, SSLEngine engine) void
setDirectBuffersForDecryption
(boolean useDirectBuffers) void
setDirectBuffersForEncryption
(boolean useDirectBuffers) void
setRequireCloseMessage
(boolean requireCloseMessage)
-
Field Details
-
SSL_ENGINE_CONTEXT_KEY
- See Also:
-
-
Constructor Details
-
SslClientConnectionFactory
public SslClientConnectionFactory(SslContextFactory sslContextFactory, ByteBufferPool byteBufferPool, Executor executor, ClientConnectionFactory connectionFactory)
-
-
Method Details
-
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_notify
message - See Also:
-
setRequireCloseMessage
public void setRequireCloseMessage(boolean requireCloseMessage) - Parameters:
requireCloseMessage
- whether peers must send the TLSclose_notify
message- See Also:
-
newConnection
- Specified by:
newConnection
in interfaceClientConnectionFactory
- Parameters:
endPoint
- theEndPoint
to 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
- Specified by:
customize
in interfaceClientConnectionFactory
-