Top Description Constructors Methods
org.apache.hc.client5.http.entity

public Class DeflateDecompressingEntity

extends DecompressingEntity
Class Inheritance
Imports
org.apache.hc.core5.http.HttpEntity

org.apache.hc.core5.http.io.entity.HttpEntityWrapper responsible for handling deflate Content Coded responses. In RFC2616 terms, deflate means a zlib stream as defined in RFC1950. Some server implementations have misinterpreted RFC2616 to mean that a deflate stream as defined in RFC1951 should be used (or maybe they did that since that's how IE behaves?). It's confusing that deflate in HTTP 1.1 means zlib streams rather than deflate streams. We handle both types in here, since that's what is seen on the internet. Moral - prefer gzip!
Since
4.1
See Also
GzipDecompressingEntity

Constructor Summary

AccessConstructor and Description
public
DeflateDecompressingEntity(final HttpEntity
a non-null HttpEntity to be wrapped
entity
)

Creates a new DeflateDecompressingEntity which will wrap the specified HttpEntity.

Method Summary

Inherited from org.apache.hc.client5.http.entity.DecompressingEntity:
getContentgetContentEncodinggetContentLengthwriteTo

Constructor Detail

DeflateDecompressingEntityback to summary
public DeflateDecompressingEntity(final HttpEntity entity)

Creates a new DeflateDecompressingEntity which will wrap the specified HttpEntity.

Parameters
entity:HttpEntity

a non-null HttpEntity to be wrapped