Class BasicEntityDetails

  • All Implemented Interfaces:
    EntityDetails

    public final class BasicEntityDetails
    extends java.lang.Object
    implements EntityDetails
    Basic HTTP message entity details.
    Since:
    5.0
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • len

        private final long len
    • Constructor Detail

      • BasicEntityDetails

        public BasicEntityDetails​(long len,
                                  ContentType contentType)
    • Method Detail

      • getContentType

        public java.lang.String getContentType()
        Description copied from interface: EntityDetails
        Returns content type of the entity, if known.
        Specified by:
        getContentType in interface EntityDetails
      • getContentEncoding

        public java.lang.String getContentEncoding()
        Description copied from interface: EntityDetails
        Returns content encoding of the entity, if known.
        Specified by:
        getContentEncoding in interface EntityDetails
      • 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 interface EntityDetails
      • getTrailerNames

        public java.util.Set<java.lang.String> getTrailerNames()
        Description copied from interface: EntityDetails
        Preliminary declaration of trailing headers.
        Specified by:
        getTrailerNames in interface EntityDetails