@NotThreadSafe public class DefaultManagedHttpClientConnection extends DefaultBHttpClientConnection implements ManagedHttpClientConnection, HttpContext
ManagedHttpClientConnection implementation.RESERVED_PREFIX| Constructor and Description |
|---|
DefaultManagedHttpClientConnection(String id,
int buffersize) |
DefaultManagedHttpClientConnection(String id,
int buffersize,
int fragmentSizeHint,
CharsetDecoder chardecoder,
CharsetEncoder charencoder,
org.apache.http.config.MessageConstraints constraints,
ContentLengthStrategy incomingContentStrategy,
ContentLengthStrategy outgoingContentStrategy,
HttpMessageWriterFactory<HttpRequest> requestWriterFactory,
HttpMessageParserFactory<HttpResponse> responseParserFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Socket socket)
Binds this connection to the given socket.
|
Object |
getAttribute(String id) |
String |
getId()
Returns connection ID which is expected to be unique
for the life span of the connection manager.
|
Socket |
getSocket()
Returns the underlying socket.
|
SSLSession |
getSSLSession()
Obtains the SSL session of the underlying connection, if any.
|
Object |
removeAttribute(String id) |
void |
setAttribute(String id,
Object obj) |
void |
shutdown() |
flush, isResponseAvailable, onRequestSubmitted, onResponseReceived, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeaderawaitInput, close, createInputStream, createOutputStream, doFlush, ensureOpen, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSessionInputBuffer, getSessionOutputBuffer, getSocketInputStream, getSocketOutputStream, getSocketTimeout, incrementRequestCount, incrementResponseCount, isOpen, isStale, prepareInput, prepareOutput, setSocketTimeout, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitflush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeadergetLocalAddress, getLocalPort, getRemoteAddress, getRemotePortclose, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeoutpublic DefaultManagedHttpClientConnection(String id, int buffersize, int fragmentSizeHint, CharsetDecoder chardecoder, CharsetEncoder charencoder, org.apache.http.config.MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)
public DefaultManagedHttpClientConnection(String id, int buffersize)
public String getId()
ManagedHttpClientConnectiongetId in interface ManagedHttpClientConnectionpublic void shutdown()
throws IOException
shutdown in interface HttpConnectionshutdown in class BHttpConnectionBaseIOExceptionpublic Object getAttribute(String id)
getAttribute in interface HttpContextpublic Object removeAttribute(String id)
removeAttribute in interface HttpContextpublic void setAttribute(String id, Object obj)
setAttribute in interface HttpContextpublic void bind(Socket socket) throws IOException
ManagedHttpClientConnectionbind in interface ManagedHttpClientConnectionbind in class DefaultBHttpClientConnectionsocket - the socket to bind the connection to.IOExceptionpublic Socket getSocket()
ManagedHttpClientConnectiongetSocket in interface ManagedHttpClientConnectiongetSocket in class BHttpConnectionBasepublic SSLSession getSSLSession()
ManagedHttpClientConnectionSSLSocket, the SSL session of
that socket is obtained. This is a potentially blocking operation.getSSLSession in interface ManagedHttpClientConnectionnull otherwiseCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.