Deprecated
(4.3) replaced by HttpClientConnectionManager.
operator.
| Modifier and Type | Method and Description |
|---|---|
| public Socket | Returns: the socket for communicating with thetarget hostObtains the socket for this connection. |
| public HttpHost | Returns: the host to which this connection is openedObtains the target host for this connection. |
| public boolean | Returns: true if this connection is secure,
false otherwiseIndicates whether this connection is secure. |
| public void | openCompleted(boolean
true if this connection is secure, for
example if an SSLSocket is used, or
false if it is not secureparameters for this connection. The parameters will
be used when creating dependent objects, for example
to determine buffer sizes. params)
Deprecated
as a consequence of
Signals that the connection has been successfully open.
HttpParams being deprecated.
|
| public void | |
| public void | update(Socket
the new socket for communicating with the target host,
or sock, HttpHost null to continue using the old socket.
If null is passed, helper objects that
depend on the socket should be re-used. In that case,
some changes in the parameters will not take effect.the new target host of this connection target, boolean true if this connection is now secure,
false if it is not securenew parameters for this connection params)
Deprecated
as a consequence of
Updates this connection.
HttpParams being deprecated.
|
| getSocket | back to summary |
|---|---|
| public Socket getSocket() Obtains the socket for this connection.
The return value is well-defined only while the connection is open.
It may change even while the connection is open,
because of an
| |
| getTargetHost | back to summary |
|---|---|
| public HttpHost getTargetHost() Obtains the target host for this connection. If the connection is to a proxy but not tunnelled, this is the proxy. If the connection is tunnelled through a proxy, this is the target of the tunnel.
The return value is well-defined only while the connection is open.
It may change even while the connection is open,
because of an
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Indicates whether this connection is secure.
The return value is well-defined only while the connection is open.
It may change even while the connection is open,
because of an
| |
| openCompleted | back to summary |
|---|---|
| public void openCompleted(boolean secure, HttpParams params) throws IOException
Deprecated as a consequence of Signals that the connection has been successfully open. An attempt to call this method on an open connection will cause an exception.
| |
| opening | back to summary |
|---|---|
| public void opening(Socket sock, HttpHost target) throws IOException Signals that this connection is in the process of being open.
By calling this method, the connection can be re-initialized
with a new Socket instance before This method can be called multiple times if the connection is layered over another protocol Note This method will not close the previously used socket. It is the caller's responsibility to close that socket if it is no longer required.
The caller must invoke | |
| update | back to summary |
|---|---|
| public void update(Socket sock, HttpHost target, boolean secure, HttpParams params) throws IOException
Deprecated as a consequence of Updates this connection. A connection can be updated only while it is open. Updates are used for example when a tunnel has been established, or when a TLS/SSL connection has been layered on top of a plain socket connection. Note Updating the connection will not close the previously used socket. It is the caller's responsibility to close that socket if it is no longer required.
| |