Deprecated
(4.1) Do not use. For multihome support socket factories must implement
org. interface.
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.
| Modifier and Type | Field and Description |
|---|---|
| private static final MultihomePlainSocketFactory | DEFAULT_FACTORY
The factory singleton. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Socket | connectSocket(final Socket
socket to connect to any of the given addresses socket, final String Host name to connect to host, final int the port to connect to port, final InetAddress local address localAddress, final int local port localPort, final HttpParams HTTP parameters params)Implements org.
Deprecated
as a consequence of
Attempts to connects the socket to any of the HttpParams being deprecated.
InetAddresses the
given host name resolves to.
|
| public Socket | createSocket()
Implements org. |
| public static MultihomePlainSocketFactory | Returns: the one and only plain socket factory
Deprecated
as a consequence of
Gets the singleton instance of this class.
MultihomePlainSocketFactory being deprecated.
|
| public boolean | Returns: falsethe connected socket sock)Implements org. |
| DEFAULT_FACTORY | back to summary |
|---|---|
| private static final MultihomePlainSocketFactory DEFAULT_FACTORY
Deprecated as a consequence of The factory singleton. | |
| MultihomePlainSocketFactory | back to summary |
|---|---|
| private MultihomePlainSocketFactory() Restricted default constructor. | |
| connectSocket | back to summary |
|---|---|
| public Socket connectSocket(final Socket socket, final String host, final int port, final InetAddress localAddress, final int localPort, final HttpParams params) throws IOException Implements org. Deprecated as a consequence of Attempts to connects the socket to any of the
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket() Implements org. Doc from org. Creates a new, unconnected socket.
The socket should subsequently be passed to
| |
| getSocketFactory | back to summary |
|---|---|
| public static MultihomePlainSocketFactory getSocketFactory()
Deprecated as a consequence of Gets the singleton instance of this class.
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure(final Socket sock) throws IllegalArgumentException Implements org. Checks whether a socket connection is secure. This factory creates plain socket connections which are not considered secure.
| |