Package org.apache.hc.core5.http.impl
Class IncomingEntityDetails
- java.lang.Object
-
- org.apache.hc.core5.http.impl.IncomingEntityDetails
-
- All Implemented Interfaces:
EntityDetails
@Internal public class IncomingEntityDetails extends java.lang.Object implements EntityDetails
HTTP message entity details.- Since:
- 5.0
-
-
Field Summary
Fields Modifier and Type Field Description private long
contentLength
private MessageHeaders
message
-
Constructor Summary
Constructors Constructor Description IncomingEntityDetails(MessageHeaders message)
IncomingEntityDetails(MessageHeaders message, long contentLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentEncoding()
Returns content encoding of the entity, if known.long
getContentLength()
Returns length of the entity, if known.java.lang.String
getContentType()
Returns content type of the entity, if known.java.util.Set<java.lang.String>
getTrailerNames()
Preliminary declaration of trailing headers.boolean
isChunked()
Returns chunked transfer hint for this entity.
-
-
-
Field Detail
-
message
private final MessageHeaders message
-
contentLength
private final long contentLength
-
-
Constructor Detail
-
IncomingEntityDetails
public IncomingEntityDetails(MessageHeaders message, long contentLength)
-
IncomingEntityDetails
public IncomingEntityDetails(MessageHeaders message)
-
-
Method Detail
-
getContentLength
public long getContentLength()
Description copied from interface:EntityDetails
Returns length of the entity, if known.- Specified by:
getContentLength
in interfaceEntityDetails
-
getContentType
public java.lang.String getContentType()
Description copied from interface:EntityDetails
Returns content type of the entity, if known.- Specified by:
getContentType
in interfaceEntityDetails
-
getContentEncoding
public java.lang.String 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
public java.util.Set<java.lang.String> getTrailerNames()
Description copied from interface:EntityDetails
Preliminary declaration of trailing headers.- Specified by:
getTrailerNames
in interfaceEntityDetails
-
-