Package org.eclipse.jetty.server
Class CachedContentFactory.CachedHttpContent
- java.lang.Object
-
- org.eclipse.jetty.server.CachedContentFactory.CachedHttpContent
-
- All Implemented Interfaces:
HttpContent
- Enclosing class:
- CachedContentFactory
public class CachedContentFactory.CachedHttpContent extends java.lang.Object implements HttpContent
MetaData associated with a context Resource.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpContent
HttpContent.ContentFactory
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCharacterEncoding()HttpFieldgetContentEncoding()java.lang.StringgetContentEncodingValue()HttpFieldgetContentLength()longgetContentLengthValue()HttpFieldgetContentType()java.lang.StringgetContentTypeValue()java.nio.ByteBuffergetDirectBuffer()HttpFieldgetETag()java.lang.StringgetETagValue()java.nio.ByteBuffergetIndirectBuffer()java.io.InputStreamgetInputStream()java.lang.StringgetKey()HttpFieldgetLastModified()java.lang.StringgetLastModifiedValue()MimeTypes.TypegetMimeType()java.util.Map<CompressedContentFormat,? extends HttpContent>getPrecompressedContents()java.nio.channels.ReadableByteChannelgetReadableByteChannel()ResourcegetResource()protected voidinvalidate()booleanisCached()voidrelease()java.lang.StringtoString()
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
-
isCached
public boolean isCached()
-
getResource
public Resource getResource()
- Specified by:
getResourcein interfaceHttpContent
-
getETag
public HttpField getETag()
- Specified by:
getETagin interfaceHttpContent
-
getETagValue
public java.lang.String getETagValue()
- Specified by:
getETagValuein interfaceHttpContent
-
invalidate
protected void invalidate()
-
getLastModified
public HttpField getLastModified()
- Specified by:
getLastModifiedin interfaceHttpContent
-
getLastModifiedValue
public java.lang.String getLastModifiedValue()
- Specified by:
getLastModifiedValuein interfaceHttpContent
-
getContentType
public HttpField getContentType()
- Specified by:
getContentTypein interfaceHttpContent
-
getContentTypeValue
public java.lang.String getContentTypeValue()
- Specified by:
getContentTypeValuein interfaceHttpContent
-
getContentEncoding
public HttpField getContentEncoding()
- Specified by:
getContentEncodingin interfaceHttpContent
-
getContentEncodingValue
public java.lang.String getContentEncodingValue()
- Specified by:
getContentEncodingValuein interfaceHttpContent
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
- Specified by:
getCharacterEncodingin interfaceHttpContent
-
getMimeType
public MimeTypes.Type getMimeType()
- Specified by:
getMimeTypein interfaceHttpContent
-
release
public void release()
- Specified by:
releasein interfaceHttpContent
-
getIndirectBuffer
public java.nio.ByteBuffer getIndirectBuffer()
- Specified by:
getIndirectBufferin interfaceHttpContent
-
getDirectBuffer
public java.nio.ByteBuffer getDirectBuffer()
- Specified by:
getDirectBufferin interfaceHttpContent
-
getContentLength
public HttpField getContentLength()
- Specified by:
getContentLengthin interfaceHttpContent
-
getContentLengthValue
public long getContentLengthValue()
- Specified by:
getContentLengthValuein interfaceHttpContent
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin interfaceHttpContent- Throws:
java.io.IOException
-
getReadableByteChannel
public java.nio.channels.ReadableByteChannel getReadableByteChannel() throws java.io.IOException- Specified by:
getReadableByteChannelin interfaceHttpContent- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getPrecompressedContents
public java.util.Map<CompressedContentFormat,? extends HttpContent> getPrecompressedContents()
- Specified by:
getPrecompressedContentsin interfaceHttpContent
-
-