Module org.eclipse.jetty.server
Package org.eclipse.jetty.server
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 java.lang.Object implements org.eclipse.jetty.http.HttpContent
MetaData associated with a context Resource.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCharacterEncoding()
org.eclipse.jetty.http.HttpField
getContentEncoding()
java.lang.String
getContentEncodingValue()
org.eclipse.jetty.http.HttpField
getContentLength()
long
getContentLengthValue()
org.eclipse.jetty.http.HttpField
getContentType()
java.lang.String
getContentTypeValue()
java.nio.ByteBuffer
getDirectBuffer()
org.eclipse.jetty.http.HttpField
getETag()
java.lang.String
getETagValue()
java.nio.ByteBuffer
getIndirectBuffer()
java.io.InputStream
getInputStream()
java.lang.String
getKey()
org.eclipse.jetty.http.HttpField
getLastModified()
java.lang.String
getLastModifiedValue()
org.eclipse.jetty.http.MimeTypes.Type
getMimeType()
java.util.Map<org.eclipse.jetty.http.CompressedContentFormat,? extends org.eclipse.jetty.http.HttpContent>
getPrecompressedContents()
java.nio.channels.ReadableByteChannel
getReadableByteChannel()
org.eclipse.jetty.util.resource.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 org.eclipse.jetty.util.resource.Resource getResource()
- Specified by:
getResource
in interfaceorg.eclipse.jetty.http.HttpContent
-
getETag
public org.eclipse.jetty.http.HttpField getETag()
- Specified by:
getETag
in interfaceorg.eclipse.jetty.http.HttpContent
-
getETagValue
public java.lang.String getETagValue()
- Specified by:
getETagValue
in interfaceorg.eclipse.jetty.http.HttpContent
-
invalidate
protected void invalidate()
-
getLastModified
public org.eclipse.jetty.http.HttpField getLastModified()
- Specified by:
getLastModified
in interfaceorg.eclipse.jetty.http.HttpContent
-
getLastModifiedValue
public java.lang.String getLastModifiedValue()
- Specified by:
getLastModifiedValue
in interfaceorg.eclipse.jetty.http.HttpContent
-
getContentType
public org.eclipse.jetty.http.HttpField getContentType()
- Specified by:
getContentType
in interfaceorg.eclipse.jetty.http.HttpContent
-
getContentTypeValue
public java.lang.String getContentTypeValue()
- Specified by:
getContentTypeValue
in interfaceorg.eclipse.jetty.http.HttpContent
-
getContentEncoding
public org.eclipse.jetty.http.HttpField getContentEncoding()
- Specified by:
getContentEncoding
in interfaceorg.eclipse.jetty.http.HttpContent
-
getContentEncodingValue
public java.lang.String getContentEncodingValue()
- Specified by:
getContentEncodingValue
in interfaceorg.eclipse.jetty.http.HttpContent
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
- Specified by:
getCharacterEncoding
in interfaceorg.eclipse.jetty.http.HttpContent
-
getMimeType
public org.eclipse.jetty.http.MimeTypes.Type getMimeType()
- Specified by:
getMimeType
in interfaceorg.eclipse.jetty.http.HttpContent
-
release
public void release()
- Specified by:
release
in interfaceorg.eclipse.jetty.http.HttpContent
-
getIndirectBuffer
public java.nio.ByteBuffer getIndirectBuffer()
- Specified by:
getIndirectBuffer
in interfaceorg.eclipse.jetty.http.HttpContent
-
getDirectBuffer
public java.nio.ByteBuffer getDirectBuffer()
- Specified by:
getDirectBuffer
in interfaceorg.eclipse.jetty.http.HttpContent
-
getContentLength
public org.eclipse.jetty.http.HttpField getContentLength()
- Specified by:
getContentLength
in interfaceorg.eclipse.jetty.http.HttpContent
-
getContentLengthValue
public long getContentLengthValue()
- Specified by:
getContentLengthValue
in interfaceorg.eclipse.jetty.http.HttpContent
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Specified by:
getInputStream
in interfaceorg.eclipse.jetty.http.HttpContent
- Throws:
java.io.IOException
-
getReadableByteChannel
public java.nio.channels.ReadableByteChannel getReadableByteChannel() throws java.io.IOException
- Specified by:
getReadableByteChannel
in interfaceorg.eclipse.jetty.http.HttpContent
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getPrecompressedContents
public java.util.Map<org.eclipse.jetty.http.CompressedContentFormat,? extends org.eclipse.jetty.http.HttpContent> getPrecompressedContents()
- Specified by:
getPrecompressedContents
in interfaceorg.eclipse.jetty.http.HttpContent
-
-