| Modifier and Type | Field and Description |
|---|---|
| private volatile CPoolEntry |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(final Socket
the socket to bind the connection to. socket)Implements org. |
| public void | |
| pack-priv CPoolEntry | |
| public static CPoolEntry | |
| public void | flush()
Implements org. |
| public Object | getAttribute(final String
the attribute name. id)Implements org. |
| pack-priv ManagedHttpClientConnection | |
| public String | getId()
Implements org. |
| public InetAddress | |
| public int | |
| public HttpConnectionMetrics | getMetrics()
Implements org. |
| pack-priv CPoolEntry | |
| public static CPoolEntry | |
| private static CPoolProxy | |
| public InetAddress | |
| public int | |
| public Socket | getSocket()
Implements org. |
| public int | getSocketTimeout()
Implements org. |
| public SSLSession | getSSLSession()
Implements org. |
| pack-priv ManagedHttpClientConnection | |
| public boolean | |
| public boolean | isResponseAvailable(final int
the maximum time in milliseconds to wait for data timeout)Implements org. |
| public boolean | isStale()
Implements org. |
| public static HttpClientConnection | |
| public void | receiveResponseEntity(final HttpResponse
the response to attach the entity to response)Implements org. |
| public HttpResponse | receiveResponseHeader()
Implements org. |
| public Object | removeAttribute(final String
the attribute name. id)Implements org. |
| public void | sendRequestEntity(final HttpEntityEnclosingRequest
the request whose entity to send. request)Implements org. |
| public void | sendRequestHeader(final HttpRequest
the request whose headers to send. request)Implements org. |
| public void | setAttribute(final String
the attribute name. id, final Object the attribute value. obj)Implements org. |
| public void | setSocketTimeout(final int
timeout value in milliseconds timeout)Implements org. |
| public void | |
| public String |
| poolEntry | back to summary |
|---|---|
| private volatile CPoolEntry poolEntry | |
| CPoolProxy | back to summary |
|---|---|
| pack-priv CPoolProxy(final CPoolEntry entry) | |
| bind | back to summary |
|---|---|
| public void bind(final Socket socket) throws IOException Implements org. Doc from org. Binds this connection to the given socket. The connection is considered open if it is bound and the underlying socket is connection to a remote host. | |
| 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 |
|---|---|
| pack-priv CPoolEntry detach() | |
| detach | back to summary |
|---|---|
| public static CPoolEntry detach(final HttpClientConnection conn) | |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Implements org. Doc from org. Writes out all pending buffered data over the open connection.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(final String id) Implements org. Doc from org. Obtains attribute with the given name. | |
| getConnection | back to summary |
|---|---|
| pack-priv ManagedHttpClientConnection getConnection() | |
| 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.
| |
| getLocalAddress | back to summary |
|---|---|
| public InetAddress getLocalAddress() Implements org.
| |
| getLocalPort | back to summary |
|---|---|
| public int getLocalPort() Implements org.
| |
| getMetrics | back to summary |
|---|---|
| public HttpConnectionMetrics getMetrics() Implements org. Doc from org. Returns a collection of connection metrics.
| |
| getPoolEntry | back to summary |
|---|---|
| pack-priv CPoolEntry getPoolEntry() | |
| getPoolEntry | back to summary |
|---|---|
| public static CPoolEntry getPoolEntry(final HttpClientConnection proxy) | |
| getProxy | back to summary |
|---|---|
| private static CPoolProxy getProxy(final HttpClientConnection conn) | |
| getRemoteAddress | back to summary |
|---|---|
| public InetAddress getRemoteAddress() Implements org.
| |
| getRemotePort | back to summary |
|---|---|
| public int getRemotePort() Implements org.
| |
| getSocket | back to summary |
|---|---|
| public Socket getSocket() Implements org. Doc from org. Returns the underlying socket.
| |
| getSocketTimeout | back to summary |
|---|---|
| public int getSocketTimeout() Implements org. Doc from org. Returns the socket timeout value.
| |
| getSSLSession | back to summary |
|---|---|
| public SSLSession getSSLSession() Implements org. Doc from org. Obtains the SSL session of the underlying connection, if any.
If this connection is open, and the underlying socket is an
| |
| getValidConnection | back to summary |
|---|---|
| pack-priv ManagedHttpClientConnection getValidConnection() | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Implements org. Doc from org. Checks if this connection is open.
| |
| isResponseAvailable | back to summary |
|---|---|
| public boolean isResponseAvailable(final int timeout) throws IOException Implements org. Doc from org. Checks if response data is available from the connection. May wait for the specified time until some data becomes available. Note that some implementations may completely ignore the timeout parameter.
| |
| isStale | back to summary |
|---|---|
| public boolean isStale() Implements org. Doc from org. Checks whether this connection has gone down. Network connections may get closed during some time of inactivity for several reasons. The next time a read is attempted on such a connection it will throw an IOException. This method tries to alleviate this inconvenience by trying to find out if a connection is still usable. Implementations may do that by attempting a read with a very small timeout. Thus this method may block for a small amount of time before returning a result. It is therefore an expensive operation.
| |
| newProxy | back to summary |
|---|---|
| public static HttpClientConnection newProxy(final CPoolEntry poolEntry) | |
| receiveResponseEntity | back to summary |
|---|---|
| public void receiveResponseEntity(final HttpResponse response) throws HttpException, IOException Implements org. Doc from org. Receives the next response entity available from this connection and attaches it to an existing HttpResponse object.
| |
| receiveResponseHeader | back to summary |
|---|---|
| public HttpResponse receiveResponseHeader() throws HttpException, IOException Implements org. Doc from org. Receives the request line and headers of the next response available from this connection. The caller should examine the HttpResponse object to find out if it should try to receive a response entity as well.
| |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(final String id) Implements org. Doc from org. Removes attribute with the given name from the context. | |
| sendRequestEntity | back to summary |
|---|---|
| public void sendRequestEntity(final HttpEntityEnclosingRequest request) throws HttpException, IOException Implements org. Doc from org. Sends the request entity over the connection.
| |
| sendRequestHeader | back to summary |
|---|---|
| public void sendRequestHeader(final HttpRequest request) throws HttpException, IOException Implements org. Doc from org. Sends the request line and all headers over the connection.
| |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(final String id, final Object obj) Implements org. Doc from org. Sets value of the attribute with the given name. | |
| setSocketTimeout | back to summary |
|---|---|
| public void setSocketTimeout(final int timeout) Implements org. Doc from org. Sets the socket timeout value.
| |
| 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.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |