Class HttpsClientHelper


  • @Deprecated
    public class HttpsClientHelper
    extends ClientConnectionHelper
    Deprecated.
    Will be removed to favor lower-level network extensions allowing more control at the Restlet API level.
    HTTPS client 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

      • HttpsClientHelper

        public HttpsClientHelper​(Client client)
        Deprecated.
        Constructor.
        Parameters:
        client - The client to help.
    • Method Detail

      • createConnection

        public Connection<Client> 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 ClientConnectionHelper
        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<Client> connection,
                                           int bufferSize)
        Deprecated.
        Description copied from class: ConnectionHelper
        Creates an inbound way for the given connection.
        Specified by:
        createInboundWay in class ConnectionHelper<Client>
        Parameters:
        connection - The parent connection.
        bufferSize - The byte buffer size.
        Returns:
        The inbound way created.
      • 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 ClientConnectionHelper
        Throws:
        java.lang.Exception