@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
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.
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.
Modifier and Type | Class and Description |
---|---|
static class |
HttpsConnection.SslProperty
Properties for
SslContextFactory . |
HttpConnection.HttpConfigurationProperty, HttpConnection.ServerConnectorProperty
context, server
log
Constructor and Description |
---|
HttpsConnection() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.jetty.server.ConnectionFactory[] |
createConnectionFactory() |
KeyValuePairSet |
getSslProperties() |
void |
setSslProperties(KeyValuePairSet kvps)
Set the SSL properties.
|
configure, createConfig, getHttpConfiguration, getPort, getSecurityHandler, getServerConnectorProperties, prepareConnection, setHttpConfiguration, setPort, setSecurityHandler, setServerConnectorProperties
addServlet, asArray, closeConnection, initConnection, removeServlet, startConnection, stopConnection
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getLookupName, getUniqueId, getWorkersFirstOnShutdown, init, prepare, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setLookupName, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
protected org.eclipse.jetty.server.ConnectionFactory[] createConnectionFactory() throws java.lang.Exception
createConnectionFactory
in class HttpConnection
java.lang.Exception
public KeyValuePairSet getSslProperties()
public void setSslProperties(KeyValuePairSet kvps)
kvps
- the SSL propertiesHttpsConnection.SslProperty