Deprecated
(4.2) do not use
entries to
managed
client connections.
The connection in the pool entry is used to initialize the base class.
In addition, methods to establish a route are delegated to the
pool entry. shutdown and close
will clear the tracked route in the pool entry and call the
respective method of the wrapped connection.
| Modifier and Type | Field and Description |
|---|---|
| protected volatile AbstractPoolEntry | poolEntry
The wrapped pool entry. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractPooledConnAdapter(final ClientConnectionManager
the connection manager manager, final AbstractPoolEntry the pool entry for the connection being wrapped entry)
Deprecated
as a consequence of
Creates a new connection adapter.
ClientConnectionManager and AbstractPoolEntry being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| protected final void | |
| protected void | assertValid(final AbstractPoolEntry entry)
Deprecated
as a consequence of
Asserts that there is a valid pool entry.
AbstractPoolEntry being deprecated.
|
| public void | |
| protected synchronized void | detach()
Overrides org. |
| public String | getId()
Implements org. |
| protected AbstractPoolEntry | Returns: the pool entry, ornull if detached
Deprecated
(4.0.1)
Obtains the pool entry.
|
| public HttpRoute | getRoute()
Implements org. |
| public Object | getState()
Implements org. |
| public void | layerProtocol(final HttpContext
the context for layering on top of this connection context, final HttpParams the parameters for layering on top of this connection params)Implements org.
Deprecated
as a consequence of
Layers a new protocol on top of a HttpParams being deprecated.
tunnelled
connection.
|
| public void | open(final HttpRoute
the route along which to open. It will be opened to
the first proxy if present, or directly to the target. route, final HttpContext the context for opening this connection context, final HttpParams the parameters for opening this connection params)Implements org.
Deprecated
as a consequence of
Opens this connection according to the given route.
HttpParams being deprecated.
|
| public void | setState(final Object
The state object state)Implements org. |
| public void | |
| public void | tunnelProxy(final HttpHost
the proxy to which the tunnel was established.
This is not the proxy through which
the tunnel was established, but the new end point
of the tunnel. The tunnel does not yet
reach to the target, use next, final boolean tunnelTarget
to indicate an end-to-end tunnel.true if the connection should be
considered secure, false otherwisethe parameters for tunnelling this connection params)Implements org.
Deprecated
as a consequence of
Indicates that a tunnel to an intermediate proxy has been established.
HttpParams being deprecated.
|
| public void | tunnelTarget(final boolean
true if the tunnel should be considered
secure, false otherwisethe parameters for tunnelling this connection params)Implements org.
Deprecated
as a consequence of
Indicates that a tunnel to the target has been established.
HttpParams being deprecated.
|
| poolEntry | back to summary |
|---|---|
| protected volatile AbstractPoolEntry poolEntry
Deprecated as a consequence of The wrapped pool entry. | |
| AbstractPooledConnAdapter | back to summary |
|---|---|
| protected AbstractPooledConnAdapter(final ClientConnectionManager manager, final AbstractPoolEntry entry)
Deprecated as a consequence of Creates a new connection adapter.
| |
| assertAttached | back to summary |
|---|---|
| protected final void assertAttached()
Deprecated (4.1) use
| |
| assertValid | back to summary |
|---|---|
| protected void assertValid(final AbstractPoolEntry entry)
Deprecated as a consequence of Asserts that there is a valid pool entry.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. Doc from org. Closes this connection gracefully.
This method will attempt to flush the internal output
buffer prior to closing the underlying socket.
This method MUST NOT be called from a different thread to force
shutdown of the connection. Use
| |
| detach | back to summary |
|---|---|
| protected synchronized void detach() Overrides org. Detaches this adapter from the wrapped connection. This adapter becomes useless.
| |
| getId | back to summary |
|---|---|
| public String getId() Implements org. Doc from org. Returns connection ID which is expected to be unique for the life span of the connection manager.
| |
| getPoolEntry | back to summary |
|---|---|
| protected AbstractPoolEntry getPoolEntry()
Deprecated (4.0.1) Obtains the pool entry.
| |
| getRoute | back to summary |
|---|---|
| public HttpRoute getRoute() Implements org. Doc from org. Obtains the current route of this connection. | |
| getState | back to summary |
|---|---|
| public Object getState() Implements org. Doc from org. Returns the state object associated with this connection. | |
| layerProtocol | back to summary |
|---|---|
| public void layerProtocol(final HttpContext context, final HttpParams params) throws IOException Implements org. Doc from org. Deprecated as a consequence of Layers a new protocol on top of a
| |
| open | back to summary |
|---|---|
| public void open(final HttpRoute route, final HttpContext context, final HttpParams params) throws IOException Implements org. Doc from org. Deprecated as a consequence of Opens this connection according to the given route.
| |
| setState | back to summary |
|---|---|
| public void setState(final Object state) Implements org. Doc from org. Assigns a state object to this connection. Connection managers may make use of the connection state when allocating persistent connections. | |
| shutdown | back to summary |
|---|---|
| public void shutdown() throws IOException Implements org. Doc from org. Force-closes this connection. This is the only method of a connection which may be called from a different thread to terminate the connection. This method will not attempt to flush the transmitter's internal buffer prior to closing the underlying socket.
| |
| tunnelProxy | back to summary |
|---|---|
| public void tunnelProxy(final HttpHost next, final boolean secure, final HttpParams params) throws IOException Implements org. Doc from org. Deprecated as a consequence of Indicates that a tunnel to an intermediate proxy has been established.
This is used exclusively for so-called proxy chains, where
a request has to pass through multiple proxies before reaching the
target. In that case, all proxies but the last need to be tunnelled
when establishing the connection. Tunnelling of the last proxy to the
target is optional and would be indicated via
| |
| tunnelTarget | back to summary |
|---|---|
| public void tunnelTarget(final boolean secure, final HttpParams params) throws IOException Implements org. Doc from org. Deprecated as a consequence of Indicates that a tunnel to the target has been established.
The route is the one previously passed to Note In HttpClient 3, a call to the corresponding method would automatically trigger the layering of the TLS/SSL protocol. This is not the case anymore, you can establish a tunnel without layering a new protocol over the connection.
| |