Interface HttpContent

All Known Implementing Classes:
CachedContentFactory.CachedHttpContent, CachedContentFactory.CachedPrecompressedHttpContent, PrecompressedHttpContent, ResourceHttpContent

@Deprecated(since="2021-05-27") public interface HttpContent
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
HttpContent interface.

This information represents all the information about a static resource that is needed to evaluate conditional headers and to serve the content if need be. It can be implemented either transiently (values and fields generated on demand) or persistently (values and fields pre-generated in anticipation of reuse in from a cache).

  • Method Details

    • getContentType

      HttpField getContentType()
      Deprecated.
    • getContentTypeValue

      String getContentTypeValue()
      Deprecated.
    • getCharacterEncoding

      String getCharacterEncoding()
      Deprecated.
    • getMimeType

      MimeTypes.Type getMimeType()
      Deprecated.
    • getContentEncoding

      HttpField getContentEncoding()
      Deprecated.
    • getContentEncodingValue

      String getContentEncodingValue()
      Deprecated.
    • getContentLength

      HttpField getContentLength()
      Deprecated.
    • getContentLengthValue

      long getContentLengthValue()
      Deprecated.
    • getLastModified

      HttpField getLastModified()
      Deprecated.
    • getLastModifiedValue

      String getLastModifiedValue()
      Deprecated.
    • getETag

      HttpField getETag()
      Deprecated.
    • getETagValue

      String getETagValue()
      Deprecated.
    • getIndirectBuffer

      ByteBuffer getIndirectBuffer()
      Deprecated.
    • getDirectBuffer

      ByteBuffer getDirectBuffer()
      Deprecated.
    • getResource

      Resource getResource()
      Deprecated.
    • getInputStream

      InputStream getInputStream() throws IOException
      Deprecated.
      Throws:
      IOException
    • getReadableByteChannel

      ReadableByteChannel getReadableByteChannel() throws IOException
      Deprecated.
      Throws:
      IOException
    • release

      void release()
      Deprecated.
    • getPrecompressedContents

      Map<CompressedContentFormat,? extends HttpContent> getPrecompressedContents()
      Deprecated.