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

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

Introduction

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

Prototype

public EntitySerializer(ContentLengthStrategy contentLengthStrategy) 

Source Link

Usage

From source file:org.mycard.net.network.AndroidHttpClientConnection.java

public AndroidHttpClientConnection() {
    this.entityserializer = new EntitySerializer(new StrictContentLengthStrategy());
}

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

public WebdavConnection(Socket socket, SessionInputBuffer input, SessionOutputBuffer output,
        HttpParams params) {//from   w ww  .  j av  a2s  .  c  o 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;
}