Home » HttpComponents-Core-4.0.1 » org.apache.http.io » [javadoc | source]
public interface: SocketFactory [javadoc | source]

All Known Implementing Classes:
    SecureSocketFactory, PlainSocketFactory, SSLSocketFactory

A factory for creating Sockets.

Both Object.equals() and Object.hashCode() should be overridden appropriately. Protocol socket factories are used to uniquely identify Protocols and HostConfigurations, and equals() and hashCode() are required for the correct operation of some connection managers.

Method from org.apache.http.io.SocketFactory Summary:
Method from org.apache.http.io.SocketFactory Detail:
 public Socket createSocket(String host,
    int port,
    InetAddress localAddress,
    int localPort,
    HttpParams params) throws IOException, UnknownHostException, ConnectTimeoutException
    Gets a new socket connection to the given host.