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

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

Introduction

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

Prototype

public LaxContentLengthStrategy() 

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  ww. j  a  va2s. 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;
}