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