Example usage for org.apache.http.io SessionInputBuffer getMetrics

List of usage examples for org.apache.http.io SessionInputBuffer getMetrics

Introduction

In this page you can find the example usage for org.apache.http.io SessionInputBuffer getMetrics.

Prototype

HttpTransportMetrics getMetrics();

Source Link

Usage

From source file:net.oneandone.sushi.fs.webdav.WebdavConnection.java

public WebdavConnection(Socket socket, SessionInputBuffer input, SessionOutputBuffer output,
        HttpParams params) {//from w w w.j  av  a 2 s. com
    this.socket = socket;
    this.entityserializer = new EntitySerializer(new StrictContentLengthStrategy());
    this.entitydeserializer = new EntityDeserializer(new LaxContentLengthStrategy());
    this.input = input;
    this.output = output;
    this.responseParser = new DefaultHttpResponseParser(input, null, new DefaultHttpResponseFactory(), params);
    this.requestWriter = new HttpRequestWriter(output, null, params);
    this.metrics = new HttpConnectionMetricsImpl(input.getMetrics(), output.getMetrics());
    this.open = true;
}