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 |
RESERVED_PREFIX
Constructor and Description |
---|
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,
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 InputStream |
getSocketInputStream(Socket socket) |
protected OutputStream |
getSocketOutputStream(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
private final org.apache.commons.logging.Log log
private final org.apache.commons.logging.Log headerlog
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, MessageConstraints constraints, ContentLengthStrategy incomingContentStrategy, ContentLengthStrategy outgoingContentStrategy, HttpMessageWriterFactory<HttpRequest> requestWriterFactory, HttpMessageParserFactory<HttpResponse> responseParserFactory)
public void close() throws IOException
HttpConnection
shutdown
instead.close
in interface Closeable
close
in interface AutoCloseable
close
in interface HttpConnection
close
in class BHttpConnectionBase
IOException
public void setSocketTimeout(int timeout)
HttpConnection
setSocketTimeout
in interface HttpConnection
setSocketTimeout
in class BHttpConnectionBase
timeout
- timeout value in millisecondspublic void shutdown() throws IOException
HttpConnection
shutdown
in interface HttpConnection
shutdown
in class DefaultManagedHttpClientConnection
IOException
protected InputStream getSocketInputStream(Socket socket) throws IOException
getSocketInputStream
in class BHttpConnectionBase
IOException
protected OutputStream getSocketOutputStream(Socket socket) throws IOException
getSocketOutputStream
in class BHttpConnectionBase
IOException
protected void onResponseReceived(HttpResponse response)
onResponseReceived
in class DefaultBHttpClientConnection
protected void onRequestSubmitted(HttpRequest request)
onRequestSubmitted
in class DefaultBHttpClientConnection
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses