Example usage for org.apache.http.impl.entity EntityDeserializer EntityDeserializer

List of usage examples for org.apache.http.impl.entity EntityDeserializer EntityDeserializer

Introduction

In this page you can find the example usage for org.apache.http.impl.entity EntityDeserializer EntityDeserializer.

Prototype

public EntityDeserializer(ContentLengthStrategy contentLengthStrategy) 

Source Link

Usage

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

public WebdavConnection(Socket socket, SessionInputBuffer input, SessionOutputBuffer output,
        HttpParams params) {/*from  www. ja v  a 2 s.co  m*/
    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;
}