@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, 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, sendRequestHeadergetLocalAddress, getLocalPort, getRemoteAddress, getRemotePortgetMetrics, getSocketTimeout, isOpen, isStalepublic 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
HttpConnectionshutdown instead.close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface HttpConnectionclose in class BHttpConnectionBasejava.io.IOExceptionpublic void setSocketTimeout(int timeout)
HttpConnectionsetSocketTimeout in interface HttpConnectionsetSocketTimeout in class BHttpConnectionBasetimeout - timeout value in millisecondspublic void shutdown()
throws java.io.IOException
HttpConnectionshutdown in interface HttpConnectionshutdown in class DefaultManagedHttpClientConnectionjava.io.IOExceptionprotected java.io.InputStream getSocketInputStream(java.net.Socket socket)
throws java.io.IOException
getSocketInputStream in class BHttpConnectionBasejava.io.IOExceptionprotected java.io.OutputStream getSocketOutputStream(java.net.Socket socket)
throws java.io.IOException
getSocketOutputStream in class BHttpConnectionBasejava.io.IOExceptionprotected void onResponseReceived(HttpResponse response)
onResponseReceived in class DefaultBHttpClientConnectionprotected void onRequestSubmitted(HttpRequest request)
onRequestSubmitted in class DefaultBHttpClientConnection