Deprecated
Do not use.
| Modifier and Type | Field and Description |
|---|---|
| private final SchemeSocketFactory | factory
Deprecated
as a consequence of
SchemeSocketFactory being deprecated.
|
| Access | Constructor and Description |
|---|---|
| pack-priv | SocketFactoryAdaptor(final SchemeSocketFactory factory)
Deprecated
as a consequence of
SchemeSocketFactory being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| 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
as a consequence of
Connects a socket to the given host.
HttpParams being deprecated.
|
| public Socket | createSocket()
Implements org. |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| public SchemeSocketFactory | |
| public int | |
| public boolean | isSecure(final Socket
the connected socket to check socket)Implements org. |
| factory | back to summary |
|---|---|
| private final SchemeSocketFactory factory
Deprecated as a consequence of | |
| SocketFactoryAdaptor | back to summary |
|---|---|
| pack-priv SocketFactoryAdaptor(final SchemeSocketFactory factory)
Deprecated as a consequence of | |
| 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 as a consequence of Connects a socket to the given host.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket() throws IOException Implements org. Doc from org. 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 SchemeSocketFactory 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 socket) 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.
| |