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

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

Introduction

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

Prototype

public LoggingInputStream(final InputStream in, final Wire wire) 

Source Link

Usage

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