Class UserSecureProtocolSocketFactory

  • All Implemented Interfaces:
    org.apache.commons.httpclient.protocol.ProtocolSocketFactory, org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory

    public class UserSecureProtocolSocketFactory
    extends Object
    implements org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
    Since:
    2018.1
    Author:
    Mikhail Khorkov
    • Constructor Detail

      • UserSecureProtocolSocketFactory

        public UserSecureProtocolSocketFactory​(SSLContext sslContext)
    • Method Detail

      • createSocket

        public Socket createSocket​(String host,
                                   int port,
                                   InetAddress localAddress,
                                   int localPort)
                            throws IOException
        Specified by:
        createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
        Throws:
        IOException
      • createSocket

        public Socket createSocket​(String host,
                                   int port,
                                   InetAddress localAddress,
                                   int localPort,
                                   org.apache.commons.httpclient.params.HttpConnectionParams params)
                            throws IOException
        Specified by:
        createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
        Throws:
        IOException
      • createSocket

        public Socket createSocket​(String host,
                                   int port)
                            throws IOException
        Specified by:
        createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
        Throws:
        IOException