Package org.apache.hc.core5.http.impl
Class BasicEntityDetails
java.lang.Object
org.apache.hc.core5.http.impl.BasicEntityDetails
- All Implemented Interfaces:
EntityDetails
Basic HTTP message entity details.
- Since:
- 5.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns content encoding of the entity, if known.long
Returns length of the entity, if known.Returns content type of the entity, if known.Preliminary declaration of trailing headers.boolean
Returns chunked transfer hint for this entity.
-
Field Details
-
len
private final long len -
contentType
-
-
Constructor Details
-
BasicEntityDetails
-
-
Method Details
-
getContentLength
public long getContentLength()Description copied from interface:EntityDetails
Returns length of the entity, if known.- Specified by:
getContentLength
in interfaceEntityDetails
-
getContentType
Description copied from interface:EntityDetails
Returns content type of the entity, if known.- Specified by:
getContentType
in interfaceEntityDetails
-
getContentEncoding
Description copied from interface:EntityDetails
Returns content encoding of the entity, if known.- Specified by:
getContentEncoding
in interfaceEntityDetails
-
isChunked
public boolean isChunked()Description copied from interface:EntityDetails
Returns chunked transfer hint for this entity.The behavior of wrapping entities is implementation dependent, but should respect the primary purpose.
- Specified by:
isChunked
in interfaceEntityDetails
-
getTrailerNames
Description copied from interface:EntityDetails
Preliminary declaration of trailing headers.- Specified by:
getTrailerNames
in interfaceEntityDetails
-