Interface EntityDetails
- All Known Subinterfaces:
AsyncEntityProducer, HttpEntity
- All Known Implementing Classes:
AbstractBinAsyncEntityProducer, AbstractCharAsyncEntityProducer, AbstractClassicEntityProducer, AbstractHttpEntity, AsyncEntityProducerWrapper, BasicAsyncEntityProducer, BasicEntityDetails, BasicHttpEntity, BufferedHttpEntity, ByteArrayEntity, ByteBufferEntity, ClassicToAsyncResponseConsumer.IncomingHttpEntity, DigestingEntityProducer, EntityTemplate, FileEntity, FileEntityProducer, HttpEntityWrapper, IncomingEntityDetails, IncomingHttpEntity, InputStreamEntity, NullEntity, PathEntity, PathEntityProducer, ReactiveEntityProducer, SerializableEntity, StringAsyncEntityProducer, StringEntity
public interface EntityDetails
Details of an entity transmitted by a message.
- Since:
- 5.0
-
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.
-
Method Details
-
getContentLength
long getContentLength()Gets length of this entity, if known.- Returns:
- the length of this entity, may be
0.
-
getContentType
String getContentType()Gets content type of this entity, if known.- Returns:
- the content type of this entity, may be
null.
-
getContentEncoding
String getContentEncoding()Gets content encoding of this entity, if known.- Returns:
- the content encoding of this entity, may be
null.
-
isChunked
boolean isChunked()Tests the chunked transfer hint for this entity.The behavior of wrapping entities is implementation dependent, but should respect the primary purpose.
- Returns:
- the chunked transfer hint for this entity.
-
getTrailerNames
-