Deprecated
(4.3) replaced by HttpClientConnectionManager.
OperatedClientConnection instances and updating the underlying
java.net.Socket of those objects. Implementations will most
likely make use of org.apache.http.conn.scheme.SchemeSocketFactory s
to create java.net.Socket instances.
The methods in this interface allow the creation of plain and layered sockets. Creating a tunnelled connection through a proxy, however, is not within the scope of the operator.
Implementations of this interface must be thread-safe. Access to shared data must be synchronized as methods of this interface may be executed from multiple threads.
| Modifier and Type | Method and Description |
|---|---|
| public OperatedClientConnection | Returns: a new, unopened connection for use with this operator
Deprecated
as a consequence of
Creates a new connection that can be operated.
OperatedClientConnection being deprecated.
|
| public void | openConnection(OperatedClientConnection
the connection to open conn, HttpHost the target host to connect to target, InetAddress the local address to route from, or
local, HttpContext null for the defaultthe context for the connection context, HttpParams the parameters for the connection params)
Deprecated
as a consequence of
Opens a connection to the given target host.
OperatedClientConnection and HttpParams being deprecated.
|
| public void | updateSecureConnection(OperatedClientConnection
the open connection to update conn, HttpHost the target host for the updated connection.
The connection must already be open or tunnelled
to the host and port, but the scheme of the target
will be used to create a layered connection. target, HttpContext the context for the connection context, HttpParams the parameters for the updated connection params)
Deprecated
as a consequence of
Updates a connection with a layered secure connection.
OperatedClientConnection and HttpParams being deprecated.
|
| createConnection | back to summary |
|---|---|
| public OperatedClientConnection createConnection()
Deprecated as a consequence of Creates a new connection that can be operated.
| |
| openConnection | back to summary |
|---|---|
| public void openConnection(OperatedClientConnection conn, HttpHost target, InetAddress local, HttpContext context, HttpParams params) throws IOException
Deprecated as a consequence of Opens a connection to the given target host.
| |
| updateSecureConnection | back to summary |
|---|---|
| public void updateSecureConnection(OperatedClientConnection conn, HttpHost target, HttpContext context, HttpParams params) throws IOException
Deprecated as a consequence of Updates a connection with a layered secure connection. The typical use of this method is to update a tunnelled plain connection (HTTP) to a secure TLS/SSL connection (HTTPS).
| |