Class CachedContentFactory.CachedHttpContent

java.lang.Object
org.eclipse.jetty.server.CachedContentFactory.CachedHttpContent
All Implemented Interfaces:
org.eclipse.jetty.http.HttpContent
Enclosing class:
CachedContentFactory

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

    • getKey

      public 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 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 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 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 String getContentEncodingValue()
      Specified by:
      getContentEncodingValue in interface org.eclipse.jetty.http.HttpContent
    • getCharacterEncoding

      public 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 ByteBuffer getIndirectBuffer()
      Specified by:
      getIndirectBuffer in interface org.eclipse.jetty.http.HttpContent
    • getDirectBuffer

      public 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 InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface org.eclipse.jetty.http.HttpContent
      Throws:
      IOException
    • getReadableByteChannel

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

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

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