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