Class SSLConnectionSocketFactoryImpl

  • All Implemented Interfaces:
    org.apache.http.conn.socket.ConnectionSocketFactory, org.apache.http.conn.socket.LayeredConnectionSocketFactory

    public class SSLConnectionSocketFactoryImpl
    extends Object
    implements org.apache.http.conn.socket.LayeredConnectionSocketFactory
    Delegated SSLConnectionSocketFactory that sets SoTimeout explicitly (for Apache HttpClient).
    Author:
    [email protected]
    • Constructor Detail

      • SSLConnectionSocketFactoryImpl

        public SSLConnectionSocketFactoryImpl​(org.apache.http.conn.ssl.SSLConnectionSocketFactory delegate,
                                              int soTimeoutMs)
    • Method Detail

      • createSocket

        public Socket createSocket​(org.apache.http.protocol.HttpContext context)
                            throws IOException
        Specified by:
        createSocket in interface org.apache.http.conn.socket.ConnectionSocketFactory
        Throws:
        IOException
      • connectSocket

        public Socket connectSocket​(int connectTimeout,
                                    Socket sock,
                                    org.apache.http.HttpHost host,
                                    InetSocketAddress remoteAddress,
                                    InetSocketAddress localAddress,
                                    org.apache.http.protocol.HttpContext context)
                             throws IOException
        Specified by:
        connectSocket in interface org.apache.http.conn.socket.ConnectionSocketFactory
        Throws:
        IOException
      • createLayeredSocket

        public Socket createLayeredSocket​(Socket socket,
                                          String target,
                                          int port,
                                          org.apache.http.protocol.HttpContext context)
                                   throws IOException
        Specified by:
        createLayeredSocket in interface org.apache.http.conn.socket.LayeredConnectionSocketFactory
        Throws:
        IOException