@NotThreadSafe class LoggingManagedHttpClientConnection extends DefaultManagedHttpClientConnection
RESERVED_PREFIX
Constructor and Description |
---|
LoggingManagedHttpClientConnection(java.lang.String id,
Log log,
Log headerlog,
Log wirelog,
int buffersize,
int fragmentSizeHint,
java.nio.charset.CharsetDecoder chardecoder,
java.nio.charset.CharsetEncoder charencoder,
MessageConstraints constraints,
ContentLengthStrategy incomingContentStrategy,
ContentLengthStrategy outgoingContentStrategy,
HttpMessageWriterFactory<HttpRequest> requestWriterFactory,
HttpMessageParserFactory<HttpResponse> responseParserFactory) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this connection gracefully.
|
protected java.io.InputStream |
getSocketInputStream(java.net.Socket socket) |
protected java.io.OutputStream |
getSocketOutputStream(java.net.Socket socket) |
protected void |
onRequestSubmitted(HttpRequest request) |
protected void |
onResponseReceived(HttpResponse response) |
void |
setSocketTimeout(int timeout)
Sets the socket timeout value.
|
void |
shutdown()
Force-closes this connection.
|
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
getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort
getMetrics, getSocketTimeout, isOpen, isStale
public LoggingManagedHttpClientConnection(java.lang.String id, Log log, Log headerlog, Log wirelog, int buffersize, int fragmentSizeHint, java.nio.charset.CharsetDecoder chardecoder, java.nio.charset.CharsetEncoder charencoder, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)
public void close() throws java.io.IOException
HttpConnection
shutdown
instead.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface HttpConnection
close
in class BHttpConnectionBase
java.io.IOException
public void setSocketTimeout(int timeout)
HttpConnection
setSocketTimeout
in interface HttpConnection
setSocketTimeout
in class BHttpConnectionBase
timeout
- timeout value in millisecondspublic void shutdown() throws java.io.IOException
HttpConnection
shutdown
in interface HttpConnection
shutdown
in class DefaultManagedHttpClientConnection
java.io.IOException
protected java.io.InputStream getSocketInputStream(java.net.Socket socket) throws java.io.IOException
getSocketInputStream
in class BHttpConnectionBase
java.io.IOException
protected java.io.OutputStream getSocketOutputStream(java.net.Socket socket) throws java.io.IOException
getSocketOutputStream
in class BHttpConnectionBase
java.io.IOException
protected void onResponseReceived(HttpResponse response)
onResponseReceived
in class DefaultBHttpClientConnection
protected void onRequestSubmitted(HttpRequest request)
onRequestSubmitted
in class DefaultBHttpClientConnection