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, setAttributeflush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeaderawaitInput, createInputStream, createOutputStream, doFlush, ensureOpen, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSessionInputBuffer, getSessionOutputBuffer, getSocketTimeout, incrementRequestCount, incrementResponseCount, isOpen, isStale, prepareInput, prepareOutput, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitflush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeaderprivate 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.Closeableclose in interface java.lang.AutoCloseableclose in interface org.apache.http.HttpConnectionclose in class org.apache.http.impl.BHttpConnectionBasejava.io.IOExceptionpublic void setSocketTimeout(int timeout)
setSocketTimeout in interface org.apache.http.HttpConnectionsetSocketTimeout in class org.apache.http.impl.BHttpConnectionBasepublic void shutdown()
throws java.io.IOException
shutdown in interface org.apache.http.HttpConnectionshutdown in class DefaultManagedHttpClientConnectionjava.io.IOExceptionprotected java.io.InputStream getSocketInputStream(java.net.Socket socket)
throws java.io.IOException
getSocketInputStream in class org.apache.http.impl.BHttpConnectionBasejava.io.IOExceptionprotected java.io.OutputStream getSocketOutputStream(java.net.Socket socket)
throws java.io.IOException
getSocketOutputStream in class org.apache.http.impl.BHttpConnectionBasejava.io.IOExceptionprotected void onResponseReceived(org.apache.http.HttpResponse response)
onResponseReceived in class org.apache.http.impl.DefaultBHttpClientConnectionprotected void onRequestSubmitted(org.apache.http.HttpRequest request)
onRequestSubmitted in class org.apache.http.impl.DefaultBHttpClientConnection