Class LoggingSessionOutputBuffer

java.lang.Object
org.apache.http.impl.conn.LoggingSessionOutputBuffer
All Implemented Interfaces:
org.apache.http.io.SessionOutputBuffer

@Contract(threading=IMMUTABLE) @Deprecated public class LoggingSessionOutputBuffer extends Object implements org.apache.http.io.SessionOutputBuffer
Deprecated.
(4.3) no longer used.
Logs all data written to the wire LOG.
Since:
4.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final String
    Deprecated.
     
    private final org.apache.http.io.SessionOutputBuffer
    Deprecated.
    Original data transmitter.
    private final Wire
    Deprecated.
    The wire log to use.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LoggingSessionOutputBuffer(org.apache.http.io.SessionOutputBuffer out, Wire wire)
    Deprecated.
     
    LoggingSessionOutputBuffer(org.apache.http.io.SessionOutputBuffer out, Wire wire, String charset)
    Deprecated.
    Create an instance that wraps the specified session output buffer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
     
    org.apache.http.io.HttpTransportMetrics
    Deprecated.
     
    void
    write(byte[] b)
    Deprecated.
     
    void
    write(byte[] b, int off, int len)
    Deprecated.
     
    void
    write(int b)
    Deprecated.
     
    void
    Deprecated.
     
    void
    writeLine(org.apache.http.util.CharArrayBuffer buffer)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • out

      private final org.apache.http.io.SessionOutputBuffer out
      Deprecated.
      Original data transmitter.
    • wire

      private final Wire wire
      Deprecated.
      The wire log to use.
    • charset

      private final String charset
      Deprecated.
  • Constructor Details

    • LoggingSessionOutputBuffer

      public LoggingSessionOutputBuffer(org.apache.http.io.SessionOutputBuffer out, Wire wire, String charset)
      Deprecated.
      Create an instance that wraps the specified session output buffer.
      Parameters:
      out - The session output buffer.
      wire - The Wire log to use.
      charset - protocol charset, ASCII if null
    • LoggingSessionOutputBuffer

      public LoggingSessionOutputBuffer(org.apache.http.io.SessionOutputBuffer out, Wire wire)
      Deprecated.
  • Method Details

    • write

      public void write(byte[] b, int off, int len) throws IOException
      Deprecated.
      Specified by:
      write in interface org.apache.http.io.SessionOutputBuffer
      Throws:
      IOException
    • write

      public void write(int b) throws IOException
      Deprecated.
      Specified by:
      write in interface org.apache.http.io.SessionOutputBuffer
      Throws:
      IOException
    • write

      public void write(byte[] b) throws IOException
      Deprecated.
      Specified by:
      write in interface org.apache.http.io.SessionOutputBuffer
      Throws:
      IOException
    • flush

      public void flush() throws IOException
      Deprecated.
      Specified by:
      flush in interface org.apache.http.io.SessionOutputBuffer
      Throws:
      IOException
    • writeLine

      public void writeLine(org.apache.http.util.CharArrayBuffer buffer) throws IOException
      Deprecated.
      Specified by:
      writeLine in interface org.apache.http.io.SessionOutputBuffer
      Throws:
      IOException
    • writeLine

      public void writeLine(String s) throws IOException
      Deprecated.
      Specified by:
      writeLine in interface org.apache.http.io.SessionOutputBuffer
      Throws:
      IOException
    • getMetrics

      public org.apache.http.io.HttpTransportMetrics getMetrics()
      Deprecated.
      Specified by:
      getMetrics in interface org.apache.http.io.SessionOutputBuffer