Class HttpsServerHelper


  • public class HttpsServerHelper
    extends NetServerHelper
    Internal 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:
    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.
    For the default SSL parameters see the Javadocs of the DefaultSslContextFactory class.
    • Field Detail

      • server

        private volatile com.sun.net.httpserver.HttpsServer server
        The underlying HTTPS server.
    • Constructor Detail

      • HttpsServerHelper

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

      • start

        public void start()
                   throws java.lang.Exception
        Starts the Restlet.
        Overrides:
        start in class NetServerHelper
        Throws:
        java.lang.Exception
      • stop

        public void stop()
                  throws java.lang.Exception
        Description copied from class: RestletHelper
        Stop callback.
        Overrides:
        stop in class NetServerHelper
        Throws:
        java.lang.Exception