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 underlyingSslContextFactory
setter.<ssl-properties> <key-value-pair> <key>WantClientAuth</key> <value>true</value> </key-value-pair> </ssl-properties>
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 theSslContextFactory
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpsConnection.SslProperty
Properties 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, server
-
Fields inherited from class com.adaptris.core.AdaptrisConnectionImp
log
-
-
Constructor Summary
Constructors Constructor Description HttpsConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.jetty.server.ConnectionFactory[]
createConnectionFactory()
KeyValuePairSet
getSslProperties()
void
setSslProperties(KeyValuePairSet kvps)
Set the SSL properties.-
Methods inherited from class com.adaptris.core.http.jetty.HttpConnection
configure, createConfig, getHttpConfiguration, getPort, getSecurityHandler, getServerConnectorProperties, prepareConnection, setHttpConfiguration, setPort, setSecurityHandler, setServerConnectorProperties
-
Methods inherited from class com.adaptris.core.http.jetty.JettyConnection
addServlet, asArray, closeConnection, initConnection, removeServlet, startConnection, stopConnection
-
Methods 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
-
-
-
-
Method Detail
-
createConnectionFactory
protected org.eclipse.jetty.server.ConnectionFactory[] createConnectionFactory() throws java.lang.Exception
- Overrides:
createConnectionFactory
in classHttpConnection
- Throws:
java.lang.Exception
-
getSslProperties
public KeyValuePairSet getSslProperties()
-
setSslProperties
public void setSslProperties(KeyValuePairSet kvps)
Set the SSL properties.- Parameters:
kvps
- the SSL properties- See Also:
HttpsConnection.SslProperty
-
-