Class CachedContentFactory.CachedHttpContent

  • All Implemented Interfaces:
    org.eclipse.jetty.http.HttpContent
    Enclosing class:
    CachedContentFactory

    public class CachedContentFactory.CachedHttpContent
    extends java.lang.Object
    implements org.eclipse.jetty.http.HttpContent
    MetaData associated with a context Resource.
    • Method Detail

      • getKey

        public java.lang.String getKey()
      • isCached

        public boolean isCached()
      • getResource

        public org.eclipse.jetty.util.resource.Resource getResource()
        Specified by:
        getResource in interface org.eclipse.jetty.http.HttpContent
      • getETag

        public org.eclipse.jetty.http.HttpField getETag()
        Specified by:
        getETag in interface org.eclipse.jetty.http.HttpContent
      • getETagValue

        public java.lang.String getETagValue()
        Specified by:
        getETagValue in interface org.eclipse.jetty.http.HttpContent
      • invalidate

        protected void invalidate()
      • getLastModified

        public org.eclipse.jetty.http.HttpField getLastModified()
        Specified by:
        getLastModified in interface org.eclipse.jetty.http.HttpContent
      • getLastModifiedValue

        public java.lang.String getLastModifiedValue()
        Specified by:
        getLastModifiedValue in interface org.eclipse.jetty.http.HttpContent
      • getContentType

        public org.eclipse.jetty.http.HttpField getContentType()
        Specified by:
        getContentType in interface org.eclipse.jetty.http.HttpContent
      • getContentTypeValue

        public java.lang.String getContentTypeValue()
        Specified by:
        getContentTypeValue in interface org.eclipse.jetty.http.HttpContent
      • getContentEncoding

        public org.eclipse.jetty.http.HttpField getContentEncoding()
        Specified by:
        getContentEncoding in interface org.eclipse.jetty.http.HttpContent
      • getContentEncodingValue

        public java.lang.String getContentEncodingValue()
        Specified by:
        getContentEncodingValue in interface org.eclipse.jetty.http.HttpContent
      • getCharacterEncoding

        public java.lang.String getCharacterEncoding()
        Specified by:
        getCharacterEncoding in interface org.eclipse.jetty.http.HttpContent
      • getMimeType

        public org.eclipse.jetty.http.MimeTypes.Type getMimeType()
        Specified by:
        getMimeType in interface org.eclipse.jetty.http.HttpContent
      • release

        public void release()
        Specified by:
        release in interface org.eclipse.jetty.http.HttpContent
      • getIndirectBuffer

        public java.nio.ByteBuffer getIndirectBuffer()
        Specified by:
        getIndirectBuffer in interface org.eclipse.jetty.http.HttpContent
      • getDirectBuffer

        public java.nio.ByteBuffer getDirectBuffer()
        Specified by:
        getDirectBuffer in interface org.eclipse.jetty.http.HttpContent
      • getContentLength

        public org.eclipse.jetty.http.HttpField getContentLength()
        Specified by:
        getContentLength in interface org.eclipse.jetty.http.HttpContent
      • getContentLengthValue

        public long getContentLengthValue()
        Specified by:
        getContentLengthValue in interface org.eclipse.jetty.http.HttpContent
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface org.eclipse.jetty.http.HttpContent
        Throws:
        java.io.IOException
      • getReadableByteChannel

        public java.nio.channels.ReadableByteChannel getReadableByteChannel()
                                                                     throws java.io.IOException
        Specified by:
        getReadableByteChannel in interface org.eclipse.jetty.http.HttpContent
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getPrecompressedContents

        public java.util.Map<org.eclipse.jetty.http.CompressedContentFormat,​? extends org.eclipse.jetty.http.HttpContent> getPrecompressedContents()
        Specified by:
        getPrecompressedContents in interface org.eclipse.jetty.http.HttpContent