Class LoggingManagedHttpClientConnection

java.lang.Object
org.apache.http.impl.BHttpConnectionBase
org.apache.http.impl.DefaultBHttpClientConnection
org.apache.http.impl.conn.DefaultManagedHttpClientConnection
org.apache.http.impl.conn.LoggingManagedHttpClientConnection
All Implemented Interfaces:
Closeable, AutoCloseable, ManagedHttpClientConnection, org.apache.http.HttpClientConnection, org.apache.http.HttpConnection, org.apache.http.HttpInetConnection, org.apache.http.protocol.HttpContext

class LoggingManagedHttpClientConnection extends DefaultManagedHttpClientConnection
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.commons.logging.Log
     
    private final org.apache.commons.logging.Log
     
    private final Wire
     

    Fields inherited from interface org.apache.http.protocol.HttpContext

    RESERVED_PREFIX
  • Constructor Summary

    Constructors
    Constructor
    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, 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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected InputStream
     
    protected OutputStream
     
    protected void
    onRequestSubmitted(org.apache.http.HttpRequest request)
     
    protected void
    onResponseReceived(org.apache.http.HttpResponse response)
     
    void
    setSocketTimeout(int timeout)
     
    void
     

    Methods inherited from class org.apache.http.impl.conn.DefaultManagedHttpClientConnection

    bind, getAttribute, getId, getSocket, getSSLSession, removeAttribute, setAttribute

    Methods inherited from class org.apache.http.impl.DefaultBHttpClientConnection

    flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader

    Methods inherited from class org.apache.http.impl.BHttpConnectionBase

    awaitInput, createInputStream, createOutputStream, doFlush, ensureOpen, getLocalAddress, getLocalPort, getMetrics, getRemoteAddress, getRemotePort, getSessionInputBuffer, getSessionOutputBuffer, getSocketTimeout, incrementRequestCount, incrementResponseCount, isOpen, isStale, prepareInput, prepareOutput, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.http.HttpClientConnection

    flush, isResponseAvailable, receiveResponseEntity, receiveResponseHeader, sendRequestEntity, sendRequestHeader

    Methods inherited from interface org.apache.http.HttpConnection

    getMetrics, getSocketTimeout, isOpen, isStale

    Methods inherited from interface org.apache.http.HttpInetConnection

    getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort
  • Field Details

    • log

      private final org.apache.commons.logging.Log log
    • headerLog

      private final org.apache.commons.logging.Log headerLog
    • wire

      private final Wire wire
  • Constructor Details

    • LoggingManagedHttpClientConnection

      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, 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)
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.http.HttpConnection
      Overrides:
      close in class org.apache.http.impl.BHttpConnectionBase
      Throws:
      IOException
    • setSocketTimeout

      public void setSocketTimeout(int timeout)
      Specified by:
      setSocketTimeout in interface org.apache.http.HttpConnection
      Overrides:
      setSocketTimeout in class org.apache.http.impl.BHttpConnectionBase
    • shutdown

      public void shutdown() throws IOException
      Specified by:
      shutdown in interface org.apache.http.HttpConnection
      Overrides:
      shutdown in class DefaultManagedHttpClientConnection
      Throws:
      IOException
    • getSocketInputStream

      protected InputStream getSocketInputStream(Socket socket) throws IOException
      Overrides:
      getSocketInputStream in class org.apache.http.impl.BHttpConnectionBase
      Throws:
      IOException
    • getSocketOutputStream

      protected OutputStream getSocketOutputStream(Socket socket) throws IOException
      Overrides:
      getSocketOutputStream in class org.apache.http.impl.BHttpConnectionBase
      Throws:
      IOException
    • onResponseReceived

      protected void onResponseReceived(org.apache.http.HttpResponse response)
      Overrides:
      onResponseReceived in class org.apache.http.impl.DefaultBHttpClientConnection
    • onRequestSubmitted

      protected void onRequestSubmitted(org.apache.http.HttpRequest request)
      Overrides:
      onRequestSubmitted in class org.apache.http.impl.DefaultBHttpClientConnection