| java.lang.Object | |
| ↳ | org.apache.http.conn.MultihomePlainSocketFactory | 
Socket factory that implements a simple multi-home fail-over on connect failure, 
 provided the same hostname resolves to multiple InetAddresses. Please note
 the connectSocket(Socket, String, int, InetAddress, int, HttpParams)
 method cannot be reliably interrupted by closing the socket returned by the
 createSocket() method.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Attempts to connects the socket to any of the  
  
  InetAddresses the 
 given host name resolves to. | |||||||||||
Creates a new, unconnected socket. 
  
   | |||||||||||
Compares this factory with an object. 
  
   | |||||||||||
Gets the singleton instance of this class. 
  
   | |||||||||||
Obtains a hash code for this object. 
  
   | |||||||||||
Checks whether a socket connection is secure. 
  
   | |||||||||||
| 
  [Expand]
   Inherited Methods  | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
   
From class
  java.lang.Object
 | |||||||||||
   
From interface
  org.apache.http.conn.scheme.SocketFactory
 | |||||||||||
Attempts to connects the socket to any of the InetAddresses the 
 given host name resolves to. If connection to all addresses fail, the  
 last I/O exception is propagated to the caller.
| sock | socket to connect to any of the given addresses | 
|---|---|
| host | Host name to connect to | 
| port | the port to connect to | 
| localAddress | local address | 
| localPort | local port | 
| params | HTTP parameters | 
sock argument if this factory supports
          a layered protocol.| IOException | if an error occurs during the connection | 
|---|---|
| SocketTimeoutException | if timeout expires before connecting | 
Creates a new, unconnected socket.
 The socket should subsequently be passed to
 connectSocket.
Compares this factory with an object. There is only one instance of this class.
| obj | the object to compare with | 
|---|
Gets the singleton instance of this class.
Obtains a hash code for this object. All instances of this class have the same hash code. There is only one instance of this class.
Checks whether a socket connection is secure. This factory creates plain socket connections which are not considered secure.
| sock | the connected socket | 
|---|
false| IllegalArgumentException | if the argument is invalid | 
|---|