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 setter.

     
       <ssl-properties>
         <key-value-pair>
            <key>WantClientAuth</key>
            <value>true</value>
         </key-value-pair>
       </ssl-properties>
     
     
    will invoke SslContextFactory.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 with an attempt to transform into the correct type. Invalid combinations may result in undefined behaviour.

    See Also:
    JettyConnection

    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 Detail

      • HttpsConnection

        public HttpsConnection()