Deprecated
(4.3) use org.
| Modifier and Type | Field and Description |
|---|---|
| private final HostNameResolver | nameResolver
Deprecated
as a consequence of
HostNameResolver being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public | PlainSocketFactory(final HostNameResolver nameResolver)
Deprecated
(4.1) use
org.
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Socket | connectSocket(final Socket
the socket to connect, as obtained from
socket, final InetSocketAddress createSocket.
null indicates that a new socket
should be created and connected.the remote address to connect to. remoteAddress, final InetSocketAddress the local address to bind the socket to, or
localAddress, final HttpParams null for anyadditional params)parameters for connectingImplements org.
Deprecated
as a consequence of
Connects a socket to the target host with the given remote address.
HttpParams being deprecated.
|
| public Socket | connectSocket(final Socket
the socket to connect, as obtained from
socket, final String createSocket.
null indicates that a new socket
should be created and connected.the host to connect to host, final int the port to connect to on the host port, final InetAddress the local address to bind the socket to, or
localAddress, final int null for anythe port on the local machine,
0 or a negative number for any localPort, final HttpParams additional params)parameters for connectingImplements org.
Deprecated
(4.1) Use
Connects a socket to the given host.
connectSocket(Socket, InetSocketAddress, InetSocketAddress, HttpParams)
|
| public Socket | createSocket(final HttpParams
Optional parameters. Parameters passed to this method will have no effect.
This method will create a unconnected instance of params)Socket class
using default constructor.Implements org.
Deprecated
as a consequence of
Creates a new, unconnected socket.
HttpParams being deprecated.
|
| public Socket | createSocket()
Implements org. |
| public static PlainSocketFactory | Returns: the default factory
Deprecated
as a consequence of
Gets the default factory.
PlainSocketFactory being deprecated.
|
| public final boolean | Returns: falsethe connected socket sock)Implements org. |
| nameResolver | back to summary |
|---|---|
| private final HostNameResolver nameResolver
Deprecated as a consequence of | |
| PlainSocketFactory | back to summary |
|---|---|
| public PlainSocketFactory(final HostNameResolver nameResolver)
Deprecated (4.1) use
| |
| PlainSocketFactory | back to summary |
|---|---|
| public PlainSocketFactory() | |
| connectSocket | back to summary |
|---|---|
| public Socket connectSocket(final Socket socket, final InetSocketAddress remoteAddress, final InetSocketAddress localAddress, final HttpParams params) throws IOException, ConnectTimeoutException Implements org. Doc from org. Deprecated as a consequence of Connects a socket to the target host with the given remote address.
Please note that
| |
| 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, UnknownHostException, ConnectTimeoutException Implements org. Doc from org. Deprecated (4.1) Use Connects a socket to the given host.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(final HttpParams params) Implements org. Doc from org. Deprecated as a consequence of Creates a new, unconnected socket. The socket should subsequently be passed to
| |
| 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 PlainSocketFactory getSocketFactory()
Deprecated as a consequence of Gets the default factory.
| |
| isSecure | back to summary |
|---|---|
| public final boolean isSecure(final Socket sock) Implements org. Checks whether a socket connection is secure. This factory creates plain socket connections which are not considered secure. | |