Package org.apache.http.impl.conn
Class LoggingSessionOutputBuffer
java.lang.Object
org.apache.http.impl.conn.LoggingSessionOutputBuffer
- All Implemented Interfaces:
SessionOutputBuffer
public class LoggingSessionOutputBuffer extends Object implements SessionOutputBuffer
Logs all data written to the wire LOG.
- Since:
- 4.0
- Author:
- Oleg Kalnichevski
-
Constructor Summary
Constructors Constructor Description LoggingSessionOutputBuffer(SessionOutputBuffer out, Wire wire)Create an instance that wraps the specified session output buffer. -
Method Summary
Modifier and Type Method Description voidflush()HttpTransportMetricsgetMetrics()voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)voidwriteLine(String s)voidwriteLine(CharArrayBuffer buffer)
-
Constructor Details
-
LoggingSessionOutputBuffer
Create an instance that wraps the specified session output buffer.- Parameters:
out- The session output buffer.wire- The Wire log to use.
-
-
Method Details
-
write
- Specified by:
writein interfaceSessionOutputBuffer- Throws:
IOException
-
write
- Specified by:
writein interfaceSessionOutputBuffer- Throws:
IOException
-
write
- Specified by:
writein interfaceSessionOutputBuffer- Throws:
IOException
-
flush
- Specified by:
flushin interfaceSessionOutputBuffer- Throws:
IOException
-
writeLine
- Specified by:
writeLinein interfaceSessionOutputBuffer- Throws:
IOException
-
writeLine
- Specified by:
writeLinein interfaceSessionOutputBuffer- Throws:
IOException
-
getMetrics
- Specified by:
getMetricsin interfaceSessionOutputBuffer
-