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

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

Introduction

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

Prototype

public LoggingSessionOutputBuffer(final SessionOutputBuffer out, final Wire wire, final String charset) 

Source Link

Document

Create an instance that wraps the specified session output buffer.

Usage

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

@Override
protected SessionOutputBuffer createSessionOutputBuffer(final Socket socket, final int buffersize,
        final HttpParams params) throws IOException {
    SessionOutputBuffer outbuffer = super.createSessionOutputBuffer(socket, buffersize > 0 ? buffersize : 8192,
            params);//w  ww  . ja  v a2s .  c  o m
    if (wireLog.isDebugEnabled()) {
        outbuffer = new LoggingSessionOutputBuffer(outbuffer, new Wire(wireLog),
                HttpProtocolParams.getHttpElementCharset(params));
    }
    return outbuffer;
}