public class ManagedClientConnectionImpl
extends java.lang.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(java.net.Socket socket) |
void |
close() |
HttpPoolEntry |
detach() |
void |
flush() |
java.lang.Object |
getAttribute(java.lang.String id) |
java.lang.String |
getId() |
java.net.InetAddress |
getLocalAddress() |
int |
getLocalPort() |
org.apache.http.conn.ClientConnectionManager |
getManager() |
org.apache.http.HttpConnectionMetrics |
getMetrics() |
java.net.InetAddress |
getRemoteAddress() |
int |
getRemotePort() |
org.apache.http.conn.routing.HttpRoute |
getRoute() |
java.net.Socket |
getSocket() |
int |
getSocketTimeout() |
javax.net.ssl.SSLSession |
getSSLSession() |
java.lang.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() |
java.lang.Object |
removeAttribute(java.lang.String id) |
void |
sendRequestEntity(org.apache.http.HttpEntityEnclosingRequest request) |
void |
sendRequestHeader(org.apache.http.HttpRequest request) |
void |
setAttribute(java.lang.String id,
java.lang.Object obj) |
void |
setIdleDuration(long duration,
java.util.concurrent.TimeUnit unit) |
void |
setSocketTimeout(int timeout) |
void |
setState(java.lang.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 java.lang.String getId()
getId in interface org.apache.http.conn.ManagedHttpClientConnectionpublic HttpPoolEntry detach()
public org.apache.http.conn.ClientConnectionManager getManager()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface org.apache.http.HttpConnectionjava.io.IOExceptionpublic void shutdown()
throws java.io.IOException
shutdown in interface org.apache.http.HttpConnectionjava.io.IOExceptionpublic 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 java.io.IOException
flush in interface org.apache.http.HttpClientConnectionjava.io.IOExceptionpublic boolean isResponseAvailable(int timeout)
throws java.io.IOException
isResponseAvailable in interface org.apache.http.HttpClientConnectionjava.io.IOExceptionpublic void receiveResponseEntity(org.apache.http.HttpResponse response)
throws org.apache.http.HttpException,
java.io.IOException
receiveResponseEntity in interface org.apache.http.HttpClientConnectionorg.apache.http.HttpExceptionjava.io.IOExceptionpublic org.apache.http.HttpResponse receiveResponseHeader()
throws org.apache.http.HttpException,
java.io.IOException
receiveResponseHeader in interface org.apache.http.HttpClientConnectionorg.apache.http.HttpExceptionjava.io.IOExceptionpublic void sendRequestEntity(org.apache.http.HttpEntityEnclosingRequest request)
throws org.apache.http.HttpException,
java.io.IOException
sendRequestEntity in interface org.apache.http.HttpClientConnectionorg.apache.http.HttpExceptionjava.io.IOExceptionpublic void sendRequestHeader(org.apache.http.HttpRequest request)
throws org.apache.http.HttpException,
java.io.IOException
sendRequestHeader in interface org.apache.http.HttpClientConnectionorg.apache.http.HttpExceptionjava.io.IOExceptionpublic java.net.InetAddress getLocalAddress()
getLocalAddress in interface org.apache.http.HttpInetConnectionpublic int getLocalPort()
getLocalPort in interface org.apache.http.HttpInetConnectionpublic java.net.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(java.net.Socket socket)
throws java.io.IOException
bind in interface org.apache.http.conn.ManagedHttpClientConnectionjava.io.IOExceptionpublic java.net.Socket getSocket()
getSocket in interface org.apache.http.conn.ManagedHttpClientConnectionpublic javax.net.ssl.SSLSession getSSLSession()
getSSLSession in interface org.apache.http.conn.HttpRoutedConnectiongetSSLSession in interface org.apache.http.conn.ManagedClientConnectiongetSSLSession in interface org.apache.http.conn.ManagedHttpClientConnectionpublic java.lang.Object getAttribute(java.lang.String id)
public java.lang.Object removeAttribute(java.lang.String id)
public void setAttribute(java.lang.String id,
java.lang.Object obj)
public 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 java.io.IOException
open in interface org.apache.http.conn.ManagedClientConnectionjava.io.IOExceptionpublic void tunnelTarget(boolean secure,
org.apache.http.params.HttpParams params)
throws java.io.IOException
tunnelTarget in interface org.apache.http.conn.ManagedClientConnectionjava.io.IOExceptionpublic void tunnelProxy(org.apache.http.HttpHost next,
boolean secure,
org.apache.http.params.HttpParams params)
throws java.io.IOException
tunnelProxy in interface org.apache.http.conn.ManagedClientConnectionjava.io.IOExceptionpublic void layerProtocol(org.apache.http.protocol.HttpContext context,
org.apache.http.params.HttpParams params)
throws java.io.IOException
layerProtocol in interface org.apache.http.conn.ManagedClientConnectionjava.io.IOExceptionpublic java.lang.Object getState()
getState in interface org.apache.http.conn.ManagedClientConnectionpublic void setState(java.lang.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,
java.util.concurrent.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-2018 Apache Software Foundation. All Rights Reserved.