Example usage for org.apache.http.impl.conn LoggingSessionInputBuffer LoggingSessionInputBuffer

List of usage examples for org.apache.http.impl.conn LoggingSessionInputBuffer LoggingSessionInputBuffer

Introduction

In this page you can find the example usage for org.apache.http.impl.conn LoggingSessionInputBuffer LoggingSessionInputBuffer.

Prototype

public LoggingSessionInputBuffer(final SessionInputBuffer in, final Wire wire, final String charset) 

Source Link

Document

Create an instance that wraps the specified session input buffer.

Usage

From source file:org.apache.http.impl.conn.DefaultClientConnection.java

@Override
protected SessionInputBuffer createSessionInputBuffer(final Socket socket, final int buffersize,
        final HttpParams params) throws IOException {
    SessionInputBuffer inbuffer = super.createSessionInputBuffer(socket, buffersize > 0 ? buffersize : 8192,
            params);//  w ww  .ja  va2s.  c  o m
    if (wireLog.isDebugEnabled()) {
        inbuffer = new LoggingSessionInputBuffer(inbuffer, new Wire(wireLog),
                HttpProtocolParams.getHttpElementCharset(params));
    }
    return inbuffer;
}