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.String
getCharacterEncoding()
HttpField
getContentEncoding()
java.lang.String
getContentEncodingValue()
HttpField
getContentLength()
long
getContentLengthValue()
HttpField
getContentType()
java.lang.String
getContentTypeValue()
java.nio.ByteBuffer
getDirectBuffer()
HttpField
getETag()
java.lang.String
getETagValue()
java.nio.ByteBuffer
getIndirectBuffer()
java.io.InputStream
getInputStream()
java.lang.String
getKey()
HttpField
getLastModified()
java.lang.String
getLastModifiedValue()
MimeTypes.Type
getMimeType()
java.util.Map<CompressedContentFormat,? extends HttpContent>
getPrecompressedContents()
java.nio.channels.ReadableByteChannel
getReadableByteChannel()
Resource
getResource()
protected void
invalidate()
boolean
isCached()
void
release()
java.lang.String
toString()
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
-
isCached
public boolean isCached()
-
getResource
public Resource getResource()
- Specified by:
getResource
in interfaceHttpContent
-
getETag
public HttpField getETag()
- Specified by:
getETag
in interfaceHttpContent
-
getETagValue
public java.lang.String getETagValue()
- Specified by:
getETagValue
in interfaceHttpContent
-
invalidate
protected void invalidate()
-
getLastModified
public HttpField getLastModified()
- Specified by:
getLastModified
in interfaceHttpContent
-
getLastModifiedValue
public java.lang.String getLastModifiedValue()
- Specified by:
getLastModifiedValue
in interfaceHttpContent
-
getContentType
public HttpField getContentType()
- Specified by:
getContentType
in interfaceHttpContent
-
getContentTypeValue
public java.lang.String getContentTypeValue()
- Specified by:
getContentTypeValue
in interfaceHttpContent
-
getContentEncoding
public HttpField getContentEncoding()
- Specified by:
getContentEncoding
in interfaceHttpContent
-
getContentEncodingValue
public java.lang.String getContentEncodingValue()
- Specified by:
getContentEncodingValue
in interfaceHttpContent
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfaceHttpContent
-
getMimeType
public MimeTypes.Type getMimeType()
- Specified by:
getMimeType
in interfaceHttpContent
-
release
public void release()
- Specified by:
release
in interfaceHttpContent
-
getIndirectBuffer
public java.nio.ByteBuffer getIndirectBuffer()
- Specified by:
getIndirectBuffer
in interfaceHttpContent
-
getDirectBuffer
public java.nio.ByteBuffer getDirectBuffer()
- Specified by:
getDirectBuffer
in interfaceHttpContent
-
getContentLength
public HttpField getContentLength()
- Specified by:
getContentLength
in interfaceHttpContent
-
getContentLengthValue
public long getContentLengthValue()
- Specified by:
getContentLengthValue
in interfaceHttpContent
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Specified by:
getInputStream
in interfaceHttpContent
- Throws:
java.io.IOException
-
getReadableByteChannel
public java.nio.channels.ReadableByteChannel getReadableByteChannel() throws java.io.IOException
- Specified by:
getReadableByteChannel
in interfaceHttpContent
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getPrecompressedContents
public java.util.Map<CompressedContentFormat,? extends HttpContent> getPrecompressedContents()
- Specified by:
getPrecompressedContents
in interfaceHttpContent
-
-