Example usage for org.apache.http.entity ByteArrayEntity getContentEncoding

List of usage examples for org.apache.http.entity ByteArrayEntity getContentEncoding

Introduction

In this page you can find the example usage for org.apache.http.entity ByteArrayEntity getContentEncoding.

Prototype

public Header getContentEncoding() 

Source Link

Usage

From source file:com.subgraph.vega.internal.model.requests.LazyEntityLoader.java

private HttpEntity createEntityCopy(RequestLogEntity entity) {
    final ByteArrayEntity copy = new ByteArrayEntity(entity.getContentArray());
    copy.setContentType(entity.getContentType());
    copy.setContentEncoding(copy.getContentEncoding());
    return copy;/*  w  w w . j av  a 2  s  . c  om*/
}