public class ManagedClientConnectionImpl extends Object implements org.apache.http.conn.ManagedClientConnection
ManagedClientConnection| Constructor and Description |
|---|
ManagedClientConnectionImpl(org.apache.http.conn.ClientConnectionManager manager,
org.apache.http.conn.ClientConnectionOperator operator,
HttpPoolEntry entry) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortConnection() |
void |
bind(Socket socket) |
void |
close() |
HttpPoolEntry |
detach() |
void |
flush() |
Object |
getAttribute(String id) |
String |
getId() |
InetAddress |
getLocalAddress() |
int |
getLocalPort() |
org.apache.http.conn.ClientConnectionManager |
getManager() |
org.apache.http.HttpConnectionMetrics |
getMetrics() |
InetAddress |
getRemoteAddress() |
int |
getRemotePort() |
org.apache.http.conn.routing.HttpRoute |
getRoute() |
Socket |
getSocket() |
int |
getSocketTimeout() |
SSLSession |
getSSLSession() |
Object |
getState() |
boolean |
isMarkedReusable() |
boolean |
isOpen() |
boolean |
isResponseAvailable(int timeout) |
boolean |
isSecure() |
boolean |
isStale() |
void |
layerProtocol(org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params) |
void |
markReusable() |
void |
open(org.apache.http.conn.routing.HttpRoute route,
org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params) |
void |
receiveResponseEntity(org.apache.http.HttpResponse response) |
org.apache.http.HttpResponse |
receiveResponseHeader() |
void |
releaseConnection() |
Object |
removeAttribute(String id) |
void |
sendRequestEntity(org.apache.http.HttpEntityEnclosingRequest request) |
void |
sendRequestHeader(org.apache.http.HttpRequest request) |
void |
setAttribute(String id,
Object obj) |
void |
setIdleDuration(long duration,
TimeUnit unit) |
void |
setSocketTimeout(int timeout) |
void |
setState(Object state) |
void |
shutdown() |
void |
tunnelProxy(org.apache.http.HttpHost next,
boolean secure,
org.apache.http.params.HttpParams params) |
void |
tunnelTarget(boolean secure,
org.apache.http.params.HttpParams params) |
void |
unmarkReusable() |
public ManagedClientConnectionImpl(org.apache.http.conn.ClientConnectionManager manager,
org.apache.http.conn.ClientConnectionOperator operator,
HttpPoolEntry entry)
public String getId()
getId in interface org.apache.http.conn.ManagedHttpClientConnectionpublic HttpPoolEntry detach()
public org.apache.http.conn.ClientConnectionManager getManager()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface org.apache.http.HttpConnectionIOExceptionpublic void shutdown()
throws IOException
shutdown in interface org.apache.http.HttpConnectionIOExceptionpublic boolean isOpen()
isOpen in interface org.apache.http.HttpConnectionpublic boolean isStale()
isStale in interface org.apache.http.HttpConnectionpublic void setSocketTimeout(int timeout)
setSocketTimeout in interface org.apache.http.HttpConnectionpublic int getSocketTimeout()
getSocketTimeout in interface org.apache.http.HttpConnectionpublic org.apache.http.HttpConnectionMetrics getMetrics()
getMetrics in interface org.apache.http.HttpConnectionpublic void flush()
throws IOException
flush in interface org.apache.http.HttpClientConnectionIOExceptionpublic boolean isResponseAvailable(int timeout)
throws IOException
isResponseAvailable in interface org.apache.http.HttpClientConnectionIOExceptionpublic void receiveResponseEntity(org.apache.http.HttpResponse response)
throws org.apache.http.HttpException,
IOException
receiveResponseEntity in interface org.apache.http.HttpClientConnectionorg.apache.http.HttpExceptionIOExceptionpublic org.apache.http.HttpResponse receiveResponseHeader()
throws org.apache.http.HttpException,
IOException
receiveResponseHeader in interface org.apache.http.HttpClientConnectionorg.apache.http.HttpExceptionIOExceptionpublic void sendRequestEntity(org.apache.http.HttpEntityEnclosingRequest request)
throws org.apache.http.HttpException,
IOException
sendRequestEntity in interface org.apache.http.HttpClientConnectionorg.apache.http.HttpExceptionIOExceptionpublic void sendRequestHeader(org.apache.http.HttpRequest request)
throws org.apache.http.HttpException,
IOException
sendRequestHeader in interface org.apache.http.HttpClientConnectionorg.apache.http.HttpExceptionIOExceptionpublic InetAddress getLocalAddress()
getLocalAddress in interface org.apache.http.HttpInetConnectionpublic int getLocalPort()
getLocalPort in interface org.apache.http.HttpInetConnectionpublic InetAddress getRemoteAddress()
getRemoteAddress in interface org.apache.http.HttpInetConnectionpublic int getRemotePort()
getRemotePort in interface org.apache.http.HttpInetConnectionpublic boolean isSecure()
isSecure in interface org.apache.http.conn.HttpRoutedConnectionisSecure in interface org.apache.http.conn.ManagedClientConnectionpublic void bind(Socket socket) throws IOException
bind in interface org.apache.http.conn.ManagedHttpClientConnectionIOExceptionpublic Socket getSocket()
getSocket in interface org.apache.http.conn.ManagedHttpClientConnectionpublic SSLSession getSSLSession()
getSSLSession in interface org.apache.http.conn.HttpRoutedConnectiongetSSLSession in interface org.apache.http.conn.ManagedClientConnectiongetSSLSession in interface org.apache.http.conn.ManagedHttpClientConnectionpublic org.apache.http.conn.routing.HttpRoute getRoute()
getRoute in interface org.apache.http.conn.HttpRoutedConnectiongetRoute in interface org.apache.http.conn.ManagedClientConnectionpublic void open(org.apache.http.conn.routing.HttpRoute route,
org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
throws IOException
open in interface org.apache.http.conn.ManagedClientConnectionIOExceptionpublic void tunnelTarget(boolean secure,
org.apache.http.params.HttpParams params)
throws IOException
tunnelTarget in interface org.apache.http.conn.ManagedClientConnectionIOExceptionpublic void tunnelProxy(org.apache.http.HttpHost next,
boolean secure,
org.apache.http.params.HttpParams params)
throws IOException
tunnelProxy in interface org.apache.http.conn.ManagedClientConnectionIOExceptionpublic void layerProtocol(org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
throws IOException
layerProtocol in interface org.apache.http.conn.ManagedClientConnectionIOExceptionpublic Object getState()
getState in interface org.apache.http.conn.ManagedClientConnectionpublic void setState(Object state)
setState in interface org.apache.http.conn.ManagedClientConnectionpublic void markReusable()
markReusable in interface org.apache.http.conn.ManagedClientConnectionpublic void unmarkReusable()
unmarkReusable in interface org.apache.http.conn.ManagedClientConnectionpublic boolean isMarkedReusable()
isMarkedReusable in interface org.apache.http.conn.ManagedClientConnectionpublic void setIdleDuration(long duration,
TimeUnit unit)
setIdleDuration in interface org.apache.http.conn.ManagedClientConnectionpublic void releaseConnection()
releaseConnection in interface org.apache.http.conn.ConnectionReleaseTriggerpublic void abortConnection()
abortConnection in interface org.apache.http.conn.ConnectionReleaseTriggerCopyright © 1998-2017 Apache Software Foundation. All Rights Reserved.