Deprecated
(4.1) do not use
| Modifier and Type | Field and Description |
|---|---|
| private final SocketFactory | factory
Deprecated
as a consequence of
SocketFactory being deprecated.
|
| Access | Constructor and Description |
|---|---|
| pack-priv | SchemeSocketFactoryAdaptor(final SocketFactory factory)
Deprecated
as a consequence of
SocketFactory 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 | 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 | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| public SocketFactory | |
| public int | |
| public boolean | isSecure(final Socket
the connected socket to check sock)Implements org. |
| factory | back to summary |
|---|---|
| private final SocketFactory factory
Deprecated as a consequence of | |
| SchemeSocketFactoryAdaptor | back to summary |
|---|---|
| pack-priv SchemeSocketFactoryAdaptor(final SocketFactory 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
| |
| 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
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getFactory | back to summary |
|---|---|
| public SocketFactory getFactory()
Deprecated as a consequence of | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| 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.
| |