Class UserSecureProtocolSocketFactory

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

    public class UserSecureProtocolSocketFactory
    extends java.lang.Object
    implements org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
    Since:
    2018.1
    Author:
    Mikhail Khorkov
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.Socket createSocket​(java.lang.String host, int port)  
      java.net.Socket createSocket​(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort)  
      java.net.Socket createSocket​(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, org.apache.commons.httpclient.params.HttpConnectionParams params)  
      java.net.Socket createSocket​(java.net.Socket socket, java.lang.String host, int port, boolean autoClose)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserSecureProtocolSocketFactory

        public UserSecureProtocolSocketFactory​(javax.net.ssl.SSLContext sslContext)
    • Method Detail

      • createSocket

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

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

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

        public java.net.Socket createSocket​(java.net.Socket socket,
                                            java.lang.String host,
                                            int port,
                                            boolean autoClose)
                                     throws java.io.IOException,
                                            java.net.UnknownHostException
        Specified by:
        createSocket in interface org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
        Throws:
        java.io.IOException
        java.net.UnknownHostException