Class HttpsServerHelper


public class HttpsServerHelper extends JettyServerHelper
Jetty HTTPS server connector. Here is the list of additional parameters that are supported. They should be set in the Server's context before it is started:
list of supported parameters
Parameter name Value type Default value Description
sslContextFactory String org.restlet.engine.ssl.DefaultSslContextFactory Let you specify a SslContextFactory qualified class name as a parameter, or an instance as an attribute for a more complete and flexible SSL context setting
http.transport.protocols string HTTP1_1 Comma separated and sorted list of supported protocols. Available values: HTTP1_1, HTTP2, HTTP3.
http3.pem.workdir string No default value Directory where are exported trusted certificates, required for HTTP3 support. There is no default value to let you configure a secured enough directory.
For the default SSL parameters see the Javadocs of the DefaultSslContextFactory class.
Author:
Jerome Louvel, Tal Liron
See Also:
  • Constructor Details

    • HttpsServerHelper

      public HttpsServerHelper(Server server)
      Constructor.
      Parameters:
      server - The server to help.
  • Method Details

    • createConnectors

      protected List<org.eclipse.jetty.server.Connector> createConnectors(org.eclipse.jetty.server.Server server)
      Description copied from class: JettyServerHelper
      Creates the Jetty connectors.
      Specified by:
      createConnectors in class JettyServerHelper
      Parameters:
      server - The Jetty server.
      Returns:
      The Jetty connectors.
    • createConnectionFactories

      protected org.eclipse.jetty.server.ConnectionFactory[] createConnectionFactories(org.eclipse.jetty.server.HttpConfiguration configuration)
      Description copied from class: JettyServerHelper
      Creates new internal Jetty connection factories.
      Specified by:
      createConnectionFactories in class JettyServerHelper
      Parameters:
      configuration - The HTTP configuration.
      Returns:
      New internal Jetty connection factories.
    • getHttpTransportProtocols

      public List<String> getHttpTransportProtocols()
      Supported HTTP transport protocols. Defaults to HTTP1_1.
      Returns:
      Supported HTTP transport protocols.
    • getHttp3PemWorkDir

      public String getHttp3PemWorkDir()
      Directory where are extracted the supported certificates.
      Returns:
      Directory where are extracted the supported certificates.