Class SslClientConnectionFactory

java.lang.Object
org.eclipse.jetty.io.ssl.SslClientConnectionFactory
All Implemented Interfaces:
ClientConnectionFactory

public class SslClientConnectionFactory extends Object implements ClientConnectionFactory

A ClientConnectionFactory that creates client-side SslConnection instances.

  • Field Details

  • Constructor Details

    • SslClientConnectionFactory

      public SslClientConnectionFactory(org.eclipse.jetty.util.ssl.SslContextFactory.Client sslContextFactory, ByteBufferPool byteBufferPool, Executor executor, ClientConnectionFactory connectionFactory)
  • Method Details

    • getSslContextFactory

      public org.eclipse.jetty.util.ssl.SslContextFactory.Client getSslContextFactory()
    • getByteBufferPool

      public ByteBufferPool getByteBufferPool()
    • getExecutor

      public Executor getExecutor()
    • getClientConnectionFactory

      public ClientConnectionFactory 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 TLS close_notify message
      See Also:
    • newConnection

      public Connection newConnection(EndPoint endPoint, Map<String,Object> context) throws IOException
      Specified by:
      newConnection in interface ClientConnectionFactory
      Parameters:
      endPoint - the EndPoint to link the newly created connection to
      context - the context data to create the connection
      Returns:
      a new Connection
      Throws:
      IOException - if the connection cannot be created
    • newSslConnection

      protected SslConnection newSslConnection(EndPoint endPoint, SSLEngine engine)
    • customize

      public Connection customize(Connection connection, Map<String,Object> context)
      Specified by:
      customize in interface ClientConnectionFactory