Package org.apache.http.impl.conn
Class LoggingSessionInputBuffer
java.lang.Object
org.apache.http.impl.conn.LoggingSessionInputBuffer
- All Implemented Interfaces:
SessionInputBuffer
public class LoggingSessionInputBuffer extends Object implements SessionInputBuffer
Logs all data read to the wire LOG.
- Since:
- 4.0
- Author:
- Ortwin Glueck, Mike Bowler, Oleg Kalnichevski
-
Constructor Summary
Constructors Constructor Description LoggingSessionInputBuffer(SessionInputBuffer in, Wire wire)Create an instance that wraps the specified session input buffer. -
Method Summary
Modifier and Type Method Description HttpTransportMetricsgetMetrics()booleanisDataAvailable(int timeout)intread()intread(byte[] b)intread(byte[] b, int off, int len)StringreadLine()intreadLine(CharArrayBuffer buffer)
-
Constructor Details
-
LoggingSessionInputBuffer
Create an instance that wraps the specified session input buffer.- Parameters:
in- The session input buffer.wire- The wire log to use.
-
-
Method Details
-
isDataAvailable
- Specified by:
isDataAvailablein interfaceSessionInputBuffer- Throws:
IOException
-
read
- Specified by:
readin interfaceSessionInputBuffer- Throws:
IOException
-
read
- Specified by:
readin interfaceSessionInputBuffer- Throws:
IOException
-
read
- Specified by:
readin interfaceSessionInputBuffer- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceSessionInputBuffer- Throws:
IOException
-
readLine
- Specified by:
readLinein interfaceSessionInputBuffer- Throws:
IOException
-
getMetrics
- Specified by:
getMetricsin interfaceSessionInputBuffer
-