Package org.apache.http.impl.conn
Class LoggingManagedHttpClientConnection
java.lang.Object
org.apache.http.impl.BHttpConnectionBase
org.apache.http.impl.DefaultBHttpClientConnection
org.apache.http.impl.conn.DefaultManagedHttpClientConnection
org.apache.http.impl.conn.LoggingManagedHttpClientConnection
- All Implemented Interfaces:
Closeable,AutoCloseable,ManagedHttpClientConnection,org.apache.http.HttpClientConnection,org.apache.http.HttpConnection,org.apache.http.HttpInetConnection,org.apache.http.protocol.HttpContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.commons.logging.Logprivate final org.apache.commons.logging.Logprivate final WireFields inherited from interface org.apache.http.protocol.HttpContext
RESERVED_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionLoggingManagedHttpClientConnection(String id, org.apache.commons.logging.Log log, org.apache.commons.logging.Log headerLog, org.apache.commons.logging.Log wireLog, 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
Modifier and TypeMethodDescriptionvoidclose()protected InputStreamgetSocketInputStream(Socket socket) protected OutputStreamgetSocketOutputStream(Socket socket) protected voidonRequestSubmitted(org.apache.http.HttpRequest request) protected voidonResponseReceived(org.apache.http.HttpResponse response) voidsetSocketTimeout(int timeout) voidshutdown()Methods inherited from class org.apache.http.impl.conn.DefaultManagedHttpClientConnection
bind, getAttribute, getId, getSocket, getSSLSession, removeAttribute, setAttributeMethods inherited from class org.apache.http.impl.DefaultBHttpClientConnection
flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeaderMethods inherited from class org.apache.http.impl.BHttpConnectionBase
awaitInput, createInputStream, createOutputStream, doFlush, ensureOpen, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSessionInputBuffer, getSessionOutputBuffer, getSocketTimeout, incrementRequestCount, incrementResponseCount, isOpen, isStale, prepareInput, prepareOutput, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.http.HttpClientConnection
flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeaderMethods inherited from interface org.apache.http.HttpConnection
getMetrics, getSocketTimeout, isOpen, isStaleMethods inherited from interface org.apache.http.HttpInetConnection
getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort
-
Field Details
-
log
private final org.apache.commons.logging.Log log -
headerLog
private final org.apache.commons.logging.Log headerLog -
wire
-
-
Constructor Details
-
LoggingManagedHttpClientConnection
public LoggingManagedHttpClientConnection(String id, org.apache.commons.logging.Log log, org.apache.commons.logging.Log headerLog, org.apache.commons.logging.Log wireLog, 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 Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.http.HttpConnection- Overrides:
closein classorg.apache.http.impl.BHttpConnectionBase- Throws:
IOException
-
setSocketTimeout
public void setSocketTimeout(int timeout) - Specified by:
setSocketTimeoutin interfaceorg.apache.http.HttpConnection- Overrides:
setSocketTimeoutin classorg.apache.http.impl.BHttpConnectionBase
-
shutdown
- Specified by:
shutdownin interfaceorg.apache.http.HttpConnection- Overrides:
shutdownin classDefaultManagedHttpClientConnection- Throws:
IOException
-
getSocketInputStream
- Overrides:
getSocketInputStreamin classorg.apache.http.impl.BHttpConnectionBase- Throws:
IOException
-
getSocketOutputStream
- Overrides:
getSocketOutputStreamin classorg.apache.http.impl.BHttpConnectionBase- Throws:
IOException
-
onResponseReceived
protected void onResponseReceived(org.apache.http.HttpResponse response) - Overrides:
onResponseReceivedin classorg.apache.http.impl.DefaultBHttpClientConnection
-
onRequestSubmitted
protected void onRequestSubmitted(org.apache.http.HttpRequest request) - Overrides:
onRequestSubmittedin classorg.apache.http.impl.DefaultBHttpClientConnection
-