|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.BHttpConnectionBase
org.apache.http.impl.DefaultBHttpClientConnection
org.apache.http.impl.conn.DefaultManagedHttpClientConnection
public class DefaultManagedHttpClientConnection
Default ManagedHttpClientConnection implementation.
| Field Summary |
|---|
| Fields inherited from interface org.apache.http.protocol.HttpContext |
|---|
RESERVED_PREFIX |
| Constructor Summary | |
|---|---|
DefaultManagedHttpClientConnection(String id,
int bufferSize)
|
|
DefaultManagedHttpClientConnection(String id,
int bufferSize,
int fragmentSizeHint,
CharsetDecoder charDecoder,
CharsetEncoder charEncoder,
org.apache.http.config.MessageConstraints constraints,
org.apache.http.entity.ContentLengthStrategy incomingContentStrategy,
org.apache.http.entity.ContentLengthStrategy outgoingContentStrategy,
org.apache.http.io.HttpMessageWriterFactory<org.apache.http.HttpRequest> requestWriterFactory,
org.apache.http.io.HttpMessageParserFactory<org.apache.http.HttpResponse> responseParserFactory)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.apache.http.impl.DefaultBHttpClientConnection |
|---|
flush, isResponseAvailable, onRequestSubmitted, onResponseReceived, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader |
| Methods inherited from class org.apache.http.impl.BHttpConnectionBase |
|---|
awaitInput, close, createInputStream, createOutputStream, doFlush, ensureOpen, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSessionInputBuffer, getSessionOutputBuffer, getSocketInputStream, getSocketOutputStream, getSocketTimeout, incrementRequestCount, incrementResponseCount, isOpen, isStale, prepareInput, prepareOutput, setSocketTimeout, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.http.HttpClientConnection |
|---|
flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader |
| Methods inherited from interface org.apache.http.HttpInetConnection |
|---|
getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort |
| Methods inherited from interface org.apache.http.HttpConnection |
|---|
close, getMetrics, getSocketTimeout, isOpen, isStale, setSocketTimeout |
| Constructor Detail |
|---|
public DefaultManagedHttpClientConnection(String id,
int bufferSize,
int fragmentSizeHint,
CharsetDecoder charDecoder,
CharsetEncoder charEncoder,
org.apache.http.config.MessageConstraints constraints,
org.apache.http.entity.ContentLengthStrategy incomingContentStrategy,
org.apache.http.entity.ContentLengthStrategy outgoingContentStrategy,
org.apache.http.io.HttpMessageWriterFactory<org.apache.http.HttpRequest> requestWriterFactory,
org.apache.http.io.HttpMessageParserFactory<org.apache.http.HttpResponse> responseParserFactory)
public DefaultManagedHttpClientConnection(String id,
int bufferSize)
| Method Detail |
|---|
public String getId()
ManagedHttpClientConnection
getId in interface ManagedHttpClientConnection
public void shutdown()
throws IOException
shutdown in interface org.apache.http.HttpConnectionshutdown in class org.apache.http.impl.BHttpConnectionBaseIOExceptionpublic Object getAttribute(String id)
getAttribute in interface org.apache.http.protocol.HttpContextpublic Object removeAttribute(String id)
removeAttribute in interface org.apache.http.protocol.HttpContext
public void setAttribute(String id,
Object obj)
setAttribute in interface org.apache.http.protocol.HttpContext
public void bind(Socket socket)
throws IOException
ManagedHttpClientConnection
bind in interface ManagedHttpClientConnectionbind in class org.apache.http.impl.DefaultBHttpClientConnectionsocket - the socket to bind the connection to.
IOExceptionpublic Socket getSocket()
ManagedHttpClientConnection
getSocket in interface ManagedHttpClientConnectiongetSocket in class org.apache.http.impl.BHttpConnectionBasepublic SSLSession getSSLSession()
ManagedHttpClientConnectionSSLSocket, the SSL session of
that socket is obtained. This is a potentially blocking operation.
getSSLSession in interface ManagedHttpClientConnectionnull otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||