org.apache.http.impl.conn
Class LoggingSessionOutputBuffer
java.lang.Object
org.apache.http.impl.conn.LoggingSessionOutputBuffer
- All Implemented Interfaces:
- org.apache.http.io.SessionOutputBuffer
public class LoggingSessionOutputBuffer
- extends java.lang.Object
- implements org.apache.http.io.SessionOutputBuffer
Logs all data written to the wire LOG.
- Since:
- 4.0
- Author:
- Oleg Kalnichevski
Constructor Summary |
LoggingSessionOutputBuffer(org.apache.http.io.SessionOutputBuffer out,
Wire wire)
Create an instance that wraps the specified session output buffer. |
Method Summary |
void |
flush()
|
org.apache.http.io.HttpTransportMetrics |
getMetrics()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
void |
writeLine(org.apache.http.util.CharArrayBuffer buffer)
|
void |
writeLine(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingSessionOutputBuffer
public LoggingSessionOutputBuffer(org.apache.http.io.SessionOutputBuffer out,
Wire wire)
- Create an instance that wraps the specified session output buffer.
- Parameters:
out
- The session output buffer.wire
- The Wire log to use.
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Specified by:
write
in interface org.apache.http.io.SessionOutputBuffer
- Throws:
java.io.IOException
write
public void write(int b)
throws java.io.IOException
- Specified by:
write
in interface org.apache.http.io.SessionOutputBuffer
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Specified by:
write
in interface org.apache.http.io.SessionOutputBuffer
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in interface org.apache.http.io.SessionOutputBuffer
- Throws:
java.io.IOException
writeLine
public void writeLine(org.apache.http.util.CharArrayBuffer buffer)
throws java.io.IOException
- Specified by:
writeLine
in interface org.apache.http.io.SessionOutputBuffer
- Throws:
java.io.IOException
writeLine
public void writeLine(java.lang.String s)
throws java.io.IOException
- Specified by:
writeLine
in interface org.apache.http.io.SessionOutputBuffer
- Throws:
java.io.IOException
getMetrics
public org.apache.http.io.HttpTransportMetrics getMetrics()
- Specified by:
getMetrics
in interface org.apache.http.io.SessionOutputBuffer
Copyright © 1999-2008 Apache Software Foundation. All Rights Reserved.