Interface EntityDetails

All Known Subinterfaces:
AsyncEntityProducer, HttpEntity
All Known Implementing Classes:
AbstractBinAsyncEntityProducer, AbstractCharAsyncEntityProducer, AbstractClassicEntityProducer, AbstractHttpEntity, AsyncEntityProducerWrapper, BasicAsyncEntityProducer, BasicEntityDetails, BasicHttpEntity, BufferedHttpEntity, ByteArrayEntity, ByteBufferEntity, 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 Details

    • getContentLength

      long getContentLength()
      Returns length of the entity, if known.
    • getContentType

      String getContentType()
      Returns content type of the entity, if known.
    • getContentEncoding

      String getContentEncoding()
      Returns content encoding of the entity, if known.
    • isChunked

      boolean isChunked()
      Returns chunked transfer hint for this entity.

      The behavior of wrapping entities is implementation dependent, but should respect the primary purpose.

    • getTrailerNames

      Set<String> getTrailerNames()
      Preliminary declaration of trailing headers.