Class GzipCompressingEntity
java.lang.Object
org.apache.hc.core5.http.io.entity.HttpEntityWrapper
org.apache.hc.client5.http.entity.GzipCompressingEntity
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.hc.core5.http.EntityDetails
,org.apache.hc.core5.http.HttpEntity
public class GzipCompressingEntity
extends org.apache.hc.core5.http.io.entity.HttpEntityWrapper
Wrapping entity that compresses content when
writing
.- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hc.core5.http.io.entity.HttpEntityWrapper
close, getContentType, getTrailerNames, getTrailers, isRepeatable, isStreaming, toString
-
Field Details
-
GZIP_CODEC
- See Also:
-
-
Constructor Details
-
GzipCompressingEntity
public GzipCompressingEntity(org.apache.hc.core5.http.HttpEntity entity)
-
-
Method Details
-
getContentEncoding
- Specified by:
getContentEncoding
in interfaceorg.apache.hc.core5.http.EntityDetails
- Overrides:
getContentEncoding
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
getContentLength
public long getContentLength()- Specified by:
getContentLength
in interfaceorg.apache.hc.core5.http.EntityDetails
- Overrides:
getContentLength
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
isChunked
public boolean isChunked()- Specified by:
isChunked
in interfaceorg.apache.hc.core5.http.EntityDetails
- Overrides:
isChunked
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
-
getContent
- Specified by:
getContent
in interfaceorg.apache.hc.core5.http.HttpEntity
- Overrides:
getContent
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceorg.apache.hc.core5.http.HttpEntity
- Overrides:
writeTo
in classorg.apache.hc.core5.http.io.entity.HttpEntityWrapper
- Throws:
IOException
-