Class OpenShiftProtocolSocketFactory

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

    public class OpenShiftProtocolSocketFactory
    extends org.apache.http.conn.socket.PlainConnectionSocketFactory
    A custom implementation which works on PaaS environments like OpenShift
    • Constructor Detail

      • OpenShiftProtocolSocketFactory

        public OpenShiftProtocolSocketFactory()
    • Method Detail

      • getSocketFactory

        public static OpenShiftProtocolSocketFactory getSocketFactory()
        Gets an singleton instance of the OpenShiftProtocolSocketFactory.
        Returns:
        a OpenShiftProtocolSocketFactory
      • connectSocket

        public Socket connectSocket​(int i,
                                    Socket socket,
                                    org.apache.http.HttpHost httpHost,
                                    InetSocketAddress inetSocketAddress,
                                    InetSocketAddress inetSocketAddress1,
                                    org.apache.http.protocol.HttpContext httpContext)
                             throws IOException
        Specified by:
        connectSocket in interface org.apache.http.conn.socket.ConnectionSocketFactory
        Overrides:
        connectSocket in class org.apache.http.conn.socket.PlainConnectionSocketFactory
        Throws:
        IOException