Package org.eclipse.jetty.http
Class PrecompressedHttpContent
- java.lang.Object
-
- org.eclipse.jetty.http.PrecompressedHttpContent
-
- All Implemented Interfaces:
HttpContent
- Direct Known Subclasses:
CachedContentFactory.CachedPrecompressedHttpContent
public class PrecompressedHttpContent extends java.lang.Object implements HttpContent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpContent
HttpContent.ContentFactory
-
-
Constructor Summary
Constructors Constructor Description PrecompressedHttpContent(HttpContent content, HttpContent precompressedContent, CompressedContentFormat format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)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()HttpFieldgetLastModified()java.lang.StringgetLastModifiedValue()MimeTypes.TypegetMimeType()java.util.Map<CompressedContentFormat,HttpContent>getPrecompressedContents()java.nio.channels.ReadableByteChannelgetReadableByteChannel()ResourcegetResource()inthashCode()voidrelease()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PrecompressedHttpContent
public PrecompressedHttpContent(HttpContent content, HttpContent precompressedContent, CompressedContentFormat format)
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
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
-
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,HttpContent> getPrecompressedContents()
- Specified by:
getPrecompressedContentsin interfaceHttpContent
-
-