Example usage for org.apache.http.testserver LoggingOutputStream LoggingOutputStream

List of usage examples for org.apache.http.testserver LoggingOutputStream LoggingOutputStream

Introduction

In this page you can find the example usage for org.apache.http.testserver LoggingOutputStream LoggingOutputStream.

Prototype

public LoggingOutputStream(final OutputStream out, final Wire wire) 

Source Link

Usage

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;
}