Interface ProtocolSocketFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      java.net.Socket createSocket​(java.lang.String host, int port)
      Deprecated.
      Gets a new socket connection to the given host.
      java.net.Socket createSocket​(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort)
      Deprecated.
      Gets a new socket connection to the given host.
      java.net.Socket createSocket​(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, HttpConnectionParams params)
      Deprecated.
      Gets a new socket connection to the given host.
    • Method Detail

      • createSocket

        java.net.Socket createSocket​(java.lang.String host,
                                     int port,
                                     java.net.InetAddress localAddress,
                                     int localPort)
                              throws java.io.IOException,
                                     java.net.UnknownHostException
        Deprecated.
        Gets a new socket connection to the given host.
        Parameters:
        host - the host name/IP
        port - the port on the host
        localAddress - the local host name/IP to bind the socket to
        localPort - the port on the local machine
        Returns:
        Socket a new socket
        Throws:
        java.io.IOException - if an I/O error occurs while creating the socket
        java.net.UnknownHostException - if the IP address of the host cannot be determined
      • createSocket

        java.net.Socket createSocket​(java.lang.String host,
                                     int port,
                                     java.net.InetAddress localAddress,
                                     int localPort,
                                     HttpConnectionParams params)
                              throws java.io.IOException,
                                     java.net.UnknownHostException,
                                     ConnectTimeoutException
        Deprecated.
        Gets a new socket connection to the given host.
        Parameters:
        host - the host name/IP
        port - the port on the host
        localAddress - the local host name/IP to bind the socket to
        localPort - the port on the local machine
        params - Http connection parameters
        Returns:
        Socket a new socket
        Throws:
        java.io.IOException - if an I/O error occurs while creating the socket
        java.net.UnknownHostException - if the IP address of the host cannot be determined
        ConnectTimeoutException - if socket cannot be connected within the given time limit
        Since:
        3.0
      • createSocket

        java.net.Socket createSocket​(java.lang.String host,
                                     int port)
                              throws java.io.IOException,
                                     java.net.UnknownHostException
        Deprecated.
        Gets a new socket connection to the given host.
        Parameters:
        host - the host name/IP
        port - the port on the host
        Returns:
        Socket a new socket
        Throws:
        java.io.IOException - if an I/O error occurs while creating the socket
        java.net.UnknownHostException - if the IP address of the host cannot be determined