Class HttpsConnection

All Implemented Interfaces:
AdaptrisComponent, AdaptrisConnection, ComponentLifecycle, ComponentLifecycleExtension, JettyServletRegistrar, StateManagedComponent

@ComponentProfile(summary="Connection that creates its own jetty engine instance and listens on the specified port", tag="connections,https,jetty") public class HttpsConnection extends HttpConnection
Concrete implementation of JettyConnection that allows HTTPs traffic.

By default all fields are left as null. This will cause Jetty to use its internal defaults. Consult the Jetty Documentation for information on the behaviour and configuration required.

The key from the ssl-properties element should match the name of the underlying SslContextFactory.Server setter.

 
   <ssl-properties>
     <key-value-pair>
        <key>WantClientAuth</key>
        <value>true</value>
     </key-value-pair>
   </ssl-properties>
 
 
will invoke SslContextFactory.Server.setWantClientAuth(boolean), setting the WantClientAuth property to true. Note that no validation of the various properties is performed and will be passed as-is to the SslContextFactory.Server with an attempt to transform into the correct type. Invalid combinations may result in undefined behaviour.

See Also:

In the adapter configuration file this class is aliased as jetty-https-connection which is the preferred alternative to the fully qualified classname when building your configuration.

  • Constructor Details

    • HttpsConnection

      public HttpsConnection()
  • Method Details

    • createConnectionFactory

      protected org.eclipse.jetty.server.ConnectionFactory[] createConnectionFactory() throws Exception
      Overrides:
      createConnectionFactory in class HttpConnection
      Throws:
      Exception
    • getSslProperties

      public KeyValuePairSet getSslProperties()
      Set the SSL properties.
      See Also:
    • setSslProperties

      public void setSslProperties(KeyValuePairSet sslProperties)
      Set the SSL properties.
      Parameters:
      sslProperties - the SSL properties
      See Also:
    • getSecureRequestCustomizerProperties

      public KeyValuePairSet getSecureRequestCustomizerProperties()
      Set the Secure Request Customizer properties.
      See Also:
      • SecureRequestCustomizer
    • setSecureRequestCustomizerProperties

      public void setSecureRequestCustomizerProperties(KeyValuePairSet secureRequestCustomizerProperties)
      Set the Secure Request Customizer properties.
      Parameters:
      secureRequestCustomizerProperties - the Secure Request Customizer properties
      See Also:
      • SecureRequestCustomizer