Package com.adaptris.core.http.jetty
Class HttpsConnection
java.lang.Object
com.adaptris.core.AdaptrisConnectionImp
com.adaptris.core.http.jetty.JettyConnection
com.adaptris.core.http.jetty.HttpConnection
com.adaptris.core.http.jetty.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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumProperties forSecureRequestCustomizer.static enumProperties forSslContextFactory.Nested classes/interfaces inherited from class com.adaptris.core.http.jetty.HttpConnection
HttpConnection.HttpConfigurationProperty, HttpConnection.ServerConnectorProperty -
Field Summary
Fields inherited from class com.adaptris.core.http.jetty.JettyConnection
context, serverFields inherited from class com.adaptris.core.AdaptrisConnectionImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.jetty.server.ConnectionFactory[]Set the Secure Request Customizer properties.Set the SSL properties.voidsetSecureRequestCustomizerProperties(KeyValuePairSet secureRequestCustomizerProperties) Set the Secure Request Customizer properties.voidsetSslProperties(KeyValuePairSet sslProperties) Set the SSL properties.Methods inherited from class com.adaptris.core.http.jetty.HttpConnection
configure, createConfig, getHttpConfiguration, getPort, getSecurityHandler, getServerConnectorProperties, prepareConnection, setHttpConfiguration, setPort, setSecurityHandler, setServerConnectorPropertiesMethods inherited from class com.adaptris.core.http.jetty.JettyConnection
addServlet, asArray, closeConnection, initConnection, removeServlet, startConnection, stopConnectionMethods inherited from class com.adaptris.core.AdaptrisConnectionImp
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
-
Constructor Details
-
HttpsConnection
public HttpsConnection()
-
-
Method Details
-
createConnectionFactory
- Overrides:
createConnectionFactoryin classHttpConnection- Throws:
Exception
-
getSslProperties
Set the SSL properties.- See Also:
-
setSslProperties
Set the SSL properties.- Parameters:
sslProperties- the SSL properties- See Also:
-
getSecureRequestCustomizerProperties
Set the Secure Request Customizer properties.- See Also:
-
SecureRequestCustomizer
-
setSecureRequestCustomizerProperties
Set the Secure Request Customizer properties.- Parameters:
secureRequestCustomizerProperties- the Secure Request Customizer properties- See Also:
-
SecureRequestCustomizer
-