List of usage examples for org.apache.http.testserver LoggingOutputStream LoggingOutputStream
public LoggingOutputStream(final OutputStream out, final Wire wire)
From source file:org.apache.http.testserver.LoggingBHttpClientConnection.java
@Override protected OutputStream getSocketOutputStream(final Socket socket) throws IOException { OutputStream out = super.getSocketOutputStream(socket); if (wire.isEnabled()) { out = new LoggingOutputStream(out, wire); }/*from w w w. ja v a 2 s . c o m*/ return out; }