List of usage examples for org.apache.http.testserver LoggingInputStream LoggingInputStream
public LoggingInputStream(final InputStream in, final Wire wire)
From source file:org.apache.http.testserver.LoggingBHttpClientConnection.java
@Override protected InputStream getSocketInputStream(final Socket socket) throws IOException { InputStream in = super.getSocketInputStream(socket); if (wire.isEnabled()) { in = new LoggingInputStream(in, wire); }/*from w ww . ja va2 s . c om*/ return in; }