ManagedHttpClientConnection implementation.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final String | |
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| public | DefaultManagedHttpClientConnection(final String id, final int bufferSize, final int fragmentSizeHint, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder, final MessageConstraints constraints, final ContentLengthStrategy incomingContentStrategy, final ContentLengthStrategy outgoingContentStrategy, final HttpMessageWriterFactory<HttpRequest> requestWriterFactory, final HttpMessageParserFactory<HttpResponse> responseParserFactory)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | bind(final Socket
the socket to bind the connection to. socket)Overrides org. Implements org. |
| public Object | getAttribute(final String
the attribute name. id)Implements org. |
| public String | getId()
Implements org. |
| public Socket | getSocket()
Overrides org. Implements org. |
| public SSLSession | getSSLSession()
Implements org. |
| public Object | removeAttribute(final String
the attribute name. id)Implements org. |
| public void | setAttribute(final String
the attribute name. id, final Object the attribute value. obj)Implements org. |
| public void | shutdown()
Overrides org. Implements org. |
| attributes | back to summary |
|---|---|
| private final Map<String, Object> attributes | |
| id | back to summary |
|---|---|
| private final String id | |
| shutdown | back to summary |
|---|---|
| private volatile boolean shutdown | |
| DefaultManagedHttpClientConnection | back to summary |
|---|---|
| public DefaultManagedHttpClientConnection(final String id, final int bufferSize, final int fragmentSizeHint, final CharsetDecoder charDecoder, final CharsetEncoder charEncoder, final MessageConstraints constraints, final ContentLengthStrategy incomingContentStrategy, final ContentLengthStrategy outgoingContentStrategy, final HttpMessageWriterFactory<HttpRequest> requestWriterFactory, final HttpMessageParserFactory<HttpResponse> responseParserFactory) | |
| DefaultManagedHttpClientConnection | back to summary |
|---|---|
| public DefaultManagedHttpClientConnection(final String id, final int bufferSize) | |
| bind | back to summary |
|---|---|
| public void bind(final Socket socket) throws IOException Overrides org. 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.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(final String id) Implements org. Doc from org. Obtains attribute with the given name. | |
| 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.
| |
| getSocket | back to summary |
|---|---|
| public Socket getSocket() Overrides org. Implements org. Doc from org. Returns the underlying socket.
| |
| 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
| |
| removeAttribute | back to summary |
|---|---|
| public Object removeAttribute(final String id) Implements org. Doc from org. Removes attribute with the given name from the context. | |
| 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. | |
| shutdown | back to summary |
|---|---|
| public void shutdown() throws IOException Overrides org. 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.
| |