de.undercouch.gradle.tasks.download.internal
Class CustomContentEncodingEntity

java.lang.Object
  extended by org.apache.http.entity.HttpEntityWrapper
      extended by de.undercouch.gradle.tasks.download.internal.CustomContentEncodingEntity
All Implemented Interfaces:
org.apache.http.HttpEntity

public class CustomContentEncodingEntity
extends org.apache.http.entity.HttpEntityWrapper

Wraps around HttpEntity and replaces its content type


Field Summary
 
Fields inherited from class org.apache.http.entity.HttpEntityWrapper
wrappedEntity
 
Constructor Summary
CustomContentEncodingEntity(org.apache.http.HttpEntity wrappedEntity, org.apache.http.Header contentEncoding)
          Create the HTTP entity
 
Method Summary
 org.apache.http.Header getContentEncoding()
           
 
Methods inherited from class org.apache.http.entity.HttpEntityWrapper
consumeContent, getContent, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomContentEncodingEntity

public CustomContentEncodingEntity(org.apache.http.HttpEntity wrappedEntity,
                                   org.apache.http.Header contentEncoding)
Create the HTTP entity

Parameters:
wrappedEntity - the entity to wrap around
contentEncoding - the custom content encoding
Method Detail

getContentEncoding

public org.apache.http.Header getContentEncoding()
Specified by:
getContentEncoding in interface org.apache.http.HttpEntity
Overrides:
getContentEncoding in class org.apache.http.entity.HttpEntityWrapper