Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.http.io
Interface SocketFactory  view SocketFactory download SocketFactory.java

All Known Subinterfaces:
SecureSocketFactory

public interface SocketFactory

A factory for creating Sockets.

Both Object.equals() 55 and Object.hashCode() 55 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.

Since:
2.0

Method Summary
 java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort, org.apache.http.params.HttpParams params)
          Gets a new socket connection to the given host.
 

Method Detail

createSocket

public java.net.Socket createSocket(java.lang.String host,
                                    int port,
                                    java.net.InetAddress localAddress,
                                    int localPort,
                                    org.apache.http.params.HttpParams params)
                             throws java.io.IOException,
                                    java.net.UnknownHostException,
                                    org.apache.http.ConnectTimeoutException
Gets a new socket connection to the given host.

Since:
3.0