Package org.eclipse.jetty.http
Class PrecompressedHttpContent
- java.lang.Object
-
- org.eclipse.jetty.http.PrecompressedHttpContent
-
- All Implemented Interfaces:
HttpContent
public class PrecompressedHttpContent extends 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(Object obj)StringgetCharacterEncoding()HttpFieldgetContentEncoding()StringgetContentEncodingValue()HttpFieldgetContentLength()longgetContentLengthValue()HttpFieldgetContentType()StringgetContentTypeValue()ByteBuffergetDirectBuffer()HttpFieldgetETag()StringgetETagValue()ByteBuffergetIndirectBuffer()InputStreamgetInputStream()HttpFieldgetLastModified()StringgetLastModifiedValue()MimeTypes.TypegetMimeType()Map<CompressedContentFormat,HttpContent>getPrecompressedContents()ReadableByteChannelgetReadableByteChannel()org.eclipse.jetty.util.resource.ResourcegetResource()inthashCode()voidrelease()StringtoString()
-
-
-
Constructor Detail
-
PrecompressedHttpContent
public PrecompressedHttpContent(HttpContent content, HttpContent precompressedContent, CompressedContentFormat format)
-
-
Method Detail
-
getResource
public org.eclipse.jetty.util.resource.Resource getResource()
- Specified by:
getResourcein interfaceHttpContent
-
getETag
public HttpField getETag()
- Specified by:
getETagin interfaceHttpContent
-
getETagValue
public String getETagValue()
- Specified by:
getETagValuein interfaceHttpContent
-
getLastModified
public HttpField getLastModified()
- Specified by:
getLastModifiedin interfaceHttpContent
-
getLastModifiedValue
public String getLastModifiedValue()
- Specified by:
getLastModifiedValuein interfaceHttpContent
-
getContentType
public HttpField getContentType()
- Specified by:
getContentTypein interfaceHttpContent
-
getContentTypeValue
public String getContentTypeValue()
- Specified by:
getContentTypeValuein interfaceHttpContent
-
getContentEncoding
public HttpField getContentEncoding()
- Specified by:
getContentEncodingin interfaceHttpContent
-
getContentEncodingValue
public String getContentEncodingValue()
- Specified by:
getContentEncodingValuein interfaceHttpContent
-
getCharacterEncoding
public 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 ByteBuffer getIndirectBuffer()
- Specified by:
getIndirectBufferin interfaceHttpContent
-
getDirectBuffer
public ByteBuffer getDirectBuffer()
- Specified by:
getDirectBufferin interfaceHttpContent
-
getContentLength
public HttpField getContentLength()
- Specified by:
getContentLengthin interfaceHttpContent
-
getContentLengthValue
public long getContentLengthValue()
- Specified by:
getContentLengthValuein interfaceHttpContent
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceHttpContent- Throws:
IOException
-
getReadableByteChannel
public ReadableByteChannel getReadableByteChannel() throws IOException
- Specified by:
getReadableByteChannelin interfaceHttpContent- Throws:
IOException
-
getPrecompressedContents
public Map<CompressedContentFormat,HttpContent> getPrecompressedContents()
- Specified by:
getPrecompressedContentsin interfaceHttpContent
-
-