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 TypeMethodDescriptionGets content encoding of this entity, if known.longGets length of this entity, if known.Gets content type of this entity, if known.Gets the preliminary declaration of trailing headers.booleanTests the 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:EntityDetailsGets length of this entity, if known.- Specified by:
getContentLengthin interfaceEntityDetails- Returns:
- the length of this entity, may be
0.
-
getContentType
Description copied from interface:EntityDetailsGets content type of this entity, if known.- Specified by:
getContentTypein interfaceEntityDetails- Returns:
- the content type of this entity, may be
null.
-
getContentEncoding
Description copied from interface:EntityDetailsGets content encoding of this entity, if known.- Specified by:
getContentEncodingin interfaceEntityDetails- Returns:
- the content encoding of this entity, may be
null.
-
isChunked
public boolean isChunked()Description copied from interface:EntityDetailsTests the chunked transfer hint for this entity.The behavior of wrapping entities is implementation dependent, but should respect the primary purpose.
- Specified by:
isChunkedin interfaceEntityDetails- Returns:
- the chunked transfer hint for this entity.
-
getTrailerNames
Description copied from interface:EntityDetailsGets the preliminary declaration of trailing headers.- Specified by:
getTrailerNamesin interfaceEntityDetails- Returns:
- the preliminary declaration of trailing headers.
-