Class HttpsServerHelper


  • @Deprecated
    public class HttpsServerHelper
    extends HttpServerHelper
    Deprecated.
    Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.
    HTTPS server helper based on NIO blocking sockets. Here is the list of SSL related parameters that are also supported:
    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

      • sslContext

        private volatile javax.net.ssl.SSLContext sslContext
        Deprecated.
        The SSL context.
    • Constructor Detail

      • HttpsServerHelper

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

      • createConnection

        public Connection<Server> createConnection​(java.nio.channels.SocketChannel socketChannel,
                                                   ConnectionController controller,
                                                   java.net.InetSocketAddress socketAddress)
                                            throws java.io.IOException
        Deprecated.
        Description copied from class: ConnectionHelper
        Creates a connection associated to the given socket.
        Overrides:
        createConnection in class ServerConnectionHelper
        Parameters:
        socketChannel - The underlying NIO socket channel.
        controller - The underlying IO controller.
        socketAddress - The associated IP address.
        Returns:
        The new connection.
        Throws:
        java.io.IOException
      • createInboundWay

        public InboundWay createInboundWay​(Connection<Server> connection,
                                           int bufferSize)
        Deprecated.
        Description copied from class: ConnectionHelper
        Creates an inbound way for the given connection.
        Overrides:
        createInboundWay in class HttpServerHelper
        Parameters:
        connection - The parent connection.
        bufferSize - The byte buffer size.
        Returns:
        The inbound way created.
      • createOutboundWay

        public OutboundWay createOutboundWay​(Connection<Server> connection,
                                             int bufferSize)
        Deprecated.
        Description copied from class: ConnectionHelper
        Creates an outbound way for the given connection.
        Overrides:
        createOutboundWay in class HttpServerHelper
        Parameters:
        connection - The parent connection.
        bufferSize - The byte buffer size.
        Returns:
        The outbound way created.
      • createRequest

        public Request createRequest​(Connection<Server> connection,
                                     java.lang.String methodName,
                                     java.lang.String resourceUri,
                                     java.lang.String protocol)
        Deprecated.
        Description copied from class: ServerConnectionHelper
        Creates a new request.
        Overrides:
        createRequest in class HttpServerHelper
        Parameters:
        connection - The associated connection.
        methodName - The method name.
        resourceUri - The target resource URI.
        protocol - The protocol name and version.
        Returns:
        The created request.
      • getSslContext

        protected javax.net.ssl.SSLContext getSslContext()
        Deprecated.
        Returns the SSL context.
        Returns:
        The SSL context.
      • setSslContext

        protected void setSslContext​(javax.net.ssl.SSLContext sslContext)
        Deprecated.
        Sets the SSL context.
        Parameters:
        sslContext - The SSL context.
      • start

        public void start()
                   throws java.lang.Exception
        Deprecated.
        Description copied from class: RestletHelper
        Start callback.
        Overrides:
        start in class ServerConnectionHelper
        Throws:
        java.lang.Exception