Example usage for Java org.apache.http.conn ManagedClientConnection fields, constructors, methods, implement or subclass
The text is from its open source code.
void | abortConnection() Releases the connection without the option of keep-alive. |
void | bind(Socket socket) Binds this connection to the given socket. |
void | close() |
void | flush() |
String | getId() Returns connection ID which is expected to be unique for the life span of the connection manager. |
InetAddress | getLocalAddress() |
int | getLocalPort() |
HttpConnectionMetrics | getMetrics() |
InetAddress | getRemoteAddress() |
int | getRemotePort() |
HttpRoute | getRoute() Obtains the current route of this connection. |
Socket | getSocket() Returns the underlying socket. |
int | getSocketTimeout() |
SSLSession | getSSLSession() Obtains the SSL session of the underlying connection, if any. |
Object | getState() Returns the state object associated with this connection. |
boolean | isMarkedReusable() Indicates whether this connection is in a reusable communication state. |
boolean | isOpen() |
boolean | isResponseAvailable(int i) |
boolean | isSecure() Indicates whether this connection is secure. |
boolean | isStale() |
void | layerProtocol(HttpContext context, HttpParams params) Layers a new protocol on top of a #tunnelTarget tunnelled connection. |
void | markReusable() Marks this connection as being in a reusable communication state. |
void | open(HttpRoute route, HttpContext context, HttpParams params) Opens this connection according to the given route. |
void | receiveResponseEntity(HttpResponse httpResponse) |
HttpResponse | receiveResponseHeader() |
void | releaseConnection() Releases the connection with the option of keep-alive. |
void | sendRequestEntity(HttpEntityEnclosingRequest httpEntityEnclosingRequest) |
void | sendRequestHeader(HttpRequest httpRequest) |
void | setIdleDuration(long duration, TimeUnit unit) Sets the duration that this connection can remain idle before it is reused. |
void | setSocketTimeout(int i) |
void | setState(Object state) Assigns a state object to this connection. |
void | shutdown() |
void | tunnelProxy(HttpHost next, boolean secure, HttpParams params) Indicates that a tunnel to an intermediate proxy has been established. |
void | tunnelTarget(boolean secure, HttpParams params) Indicates that a tunnel to the target has been established. |
void | unmarkReusable() Marks this connection as not being in a reusable state. |