Interface HttpContent

  • All Known Implementing Classes:
    PrecompressedHttpContent, ResourceHttpContent

    public interface HttpContent
    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 Detail

      • getContentTypeValue

        java.lang.String getContentTypeValue()
      • getCharacterEncoding

        java.lang.String getCharacterEncoding()
      • getContentEncoding

        HttpField getContentEncoding()
      • getContentEncodingValue

        java.lang.String getContentEncodingValue()
      • getContentLength

        HttpField getContentLength()
      • getContentLengthValue

        long getContentLengthValue()
      • getLastModified

        HttpField getLastModified()
      • getLastModifiedValue

        java.lang.String getLastModifiedValue()
      • getETagValue

        java.lang.String getETagValue()
      • getIndirectBuffer

        java.nio.ByteBuffer getIndirectBuffer()
      • getDirectBuffer

        java.nio.ByteBuffer getDirectBuffer()
      • getResource

        org.eclipse.jetty.util.resource.Resource getResource()
      • getInputStream

        java.io.InputStream getInputStream()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getReadableByteChannel

        java.nio.channels.ReadableByteChannel getReadableByteChannel()
                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • release

        void release()