class LoggingManagedHttpClientConnection extends DefaultManagedHttpClientConnection
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.logging.Log |
headerLog |
private org.apache.commons.logging.Log |
log |
private Wire |
wire |
Constructor and Description |
---|
LoggingManagedHttpClientConnection(java.lang.String id,
org.apache.commons.logging.Log log,
org.apache.commons.logging.Log headerLog,
org.apache.commons.logging.Log wireLog,
int bufferSize,
int fragmentSizeHint,
java.nio.charset.CharsetDecoder charDecoder,
java.nio.charset.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) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected java.io.InputStream |
getSocketInputStream(java.net.Socket socket) |
protected java.io.OutputStream |
getSocketOutputStream(java.net.Socket socket) |
protected void |
onRequestSubmitted(org.apache.http.HttpRequest request) |
protected void |
onResponseReceived(org.apache.http.HttpResponse response) |
void |
setSocketTimeout(int timeout) |
void |
shutdown() |
bind, getAttribute, getId, getSocket, getSSLSession, removeAttribute, setAttribute
flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader
awaitInput, createInputStream, createOutputStream, doFlush, ensureOpen, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSessionInputBuffer, getSessionOutputBuffer, getSocketTimeout, incrementRequestCount, incrementResponseCount, isOpen, isStale, prepareInput, prepareOutput, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader
private final org.apache.commons.logging.Log log
private final org.apache.commons.logging.Log headerLog
private final Wire wire
public LoggingManagedHttpClientConnection(java.lang.String id, org.apache.commons.logging.Log log, org.apache.commons.logging.Log headerLog, org.apache.commons.logging.Log wireLog, int bufferSize, int fragmentSizeHint, java.nio.charset.CharsetDecoder charDecoder, java.nio.charset.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 void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface org.apache.http.HttpConnection
close
in class org.apache.http.impl.BHttpConnectionBase
java.io.IOException
public void setSocketTimeout(int timeout)
setSocketTimeout
in interface org.apache.http.HttpConnection
setSocketTimeout
in class org.apache.http.impl.BHttpConnectionBase
public void shutdown() throws java.io.IOException
shutdown
in interface org.apache.http.HttpConnection
shutdown
in class DefaultManagedHttpClientConnection
java.io.IOException
protected java.io.InputStream getSocketInputStream(java.net.Socket socket) throws java.io.IOException
getSocketInputStream
in class org.apache.http.impl.BHttpConnectionBase
java.io.IOException
protected java.io.OutputStream getSocketOutputStream(java.net.Socket socket) throws java.io.IOException
getSocketOutputStream
in class org.apache.http.impl.BHttpConnectionBase
java.io.IOException
protected void onResponseReceived(org.apache.http.HttpResponse response)
onResponseReceived
in class org.apache.http.impl.DefaultBHttpClientConnection
protected void onRequestSubmitted(org.apache.http.HttpRequest request)
onRequestSubmitted
in class org.apache.http.impl.DefaultBHttpClientConnection