Deprecated
(4.2) do not use
| Modifier and Type | Field and Description |
|---|---|
| private final LayeredSchemeSocketFactory | factory
Deprecated
as a consequence of
LayeredSchemeSocketFactory being deprecated.
|
| Access | Constructor and Description |
|---|---|
| pack-priv | SchemeLayeredSocketFactoryAdaptor2(final LayeredSchemeSocketFactory factory)
Deprecated
as a consequence of
LayeredSchemeSocketFactory being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| public Socket | connectSocket(final Socket
the socket to connect, as obtained from
sock, 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 | createLayeredSocket(final Socket
the existing socket socket, final String the name of the target host. target, final int the port to connect to on the target host port, final HttpParams HTTP parameters params)Implements org.
Deprecated
as a consequence of
Returns a socket connected to the given host that is layered over an
existing socket.
HttpParams being deprecated.
|
| public Socket | createSocket(final HttpParams
Optional params)parameters. In most cases these parameters
will not be required and will have no effect, as usually socket
initialization should take place in the
connectSocket(Socket, InetSocketAddress, InetSocketAddress, HttpParams)
method. However, in rare cases one may want to pass additional parameters
to this method in order to create a customized Socket instance,
for instance bound to a SOCKS proxy server.Implements org.
Deprecated
as a consequence of
Creates a new, unconnected socket.
HttpParams being deprecated.
|
| public boolean | isSecure(final Socket
the connected socket to check sock)Implements org. |
| factory | back to summary |
|---|---|
| private final LayeredSchemeSocketFactory factory
Deprecated as a consequence of | |
| SchemeLayeredSocketFactoryAdaptor2 | back to summary |
|---|---|
| pack-priv SchemeLayeredSocketFactoryAdaptor2(final LayeredSchemeSocketFactory factory)
Deprecated as a consequence of | |
| connectSocket | back to summary |
|---|---|
| public Socket connectSocket(final Socket sock, final InetSocketAddress remoteAddress, final InetSocketAddress localAddress, final HttpParams params) throws IOException, UnknownHostException, 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
| |
| createLayeredSocket | back to summary |
|---|---|
| public Socket createLayeredSocket(final Socket socket, final String target, final int port, final HttpParams params) throws IOException, UnknownHostException Implements org. Doc from org. Deprecated as a consequence of Returns a socket connected to the given host that is layered over an existing socket. Used primarily for creating secure sockets through proxies.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(final HttpParams params) throws IOException Implements org. Doc from org. Deprecated as a consequence of Creates a new, unconnected socket. The socket should subsequently be passed to
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure(final Socket sock) throws IllegalArgumentException Implements org. Doc from org. Checks whether a socket provides a secure connection. The socket must be
As a rule of thumb, plain sockets are not secure and TLS/SSL sockets are secure. However, there may be application specific deviations. For example, a plain socket to a host in the same intranet ("trusted zone") could be considered secure. On the other hand, a TLS/SSL socket could be considered insecure based on the cipher suite chosen for the connection.
| |