Package org.eclipse.jetty.http.content
Class PreCompressedHttpContent
java.lang.Object
org.eclipse.jetty.http.content.PreCompressedHttpContent
- All Implemented Interfaces:
HttpContent
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.content.HttpContent
HttpContent.Factory, HttpContent.Wrapper
-
Constructor Summary
ConstructorDescriptionPreCompressedHttpContent
(HttpContent content, HttpContent precompressedContent, CompressedContentFormat format) -
Method Summary
Modifier and TypeMethodDescriptionGet this HTTP content as aByteBuffer
if possible.long
getETag()
void
release()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.http.content.HttpContent
getBytesOccupied
-
Constructor Details
-
PreCompressedHttpContent
public PreCompressedHttpContent(HttpContent content, HttpContent precompressedContent, CompressedContentFormat format)
-
-
Method Details
-
getResource
- Specified by:
getResource
in interfaceHttpContent
-
getETag
- Specified by:
getETag
in interfaceHttpContent
-
getETagValue
- Specified by:
getETagValue
in interfaceHttpContent
-
getLastModifiedInstant
- Specified by:
getLastModifiedInstant
in interfaceHttpContent
-
getLastModified
- Specified by:
getLastModified
in interfaceHttpContent
-
getLastModifiedValue
- Specified by:
getLastModifiedValue
in interfaceHttpContent
-
getContentType
- Specified by:
getContentType
in interfaceHttpContent
-
getContentTypeValue
- Specified by:
getContentTypeValue
in interfaceHttpContent
-
getContentEncoding
- Specified by:
getContentEncoding
in interfaceHttpContent
-
getContentEncodingValue
- Specified by:
getContentEncodingValue
in interfaceHttpContent
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfaceHttpContent
-
getMimeType
- Specified by:
getMimeType
in interfaceHttpContent
-
getContentLength
- Specified by:
getContentLength
in interfaceHttpContent
-
getContentLengthValue
public long getContentLengthValue()- Specified by:
getContentLengthValue
in interfaceHttpContent
-
toString
-
getByteBuffer
Description copied from interface:HttpContent
Get this HTTP content as a
ByteBuffer
if possible.Each invocation returns a new
ByteBuffer
instance that is read-only and contains valid data between the pos and the limit.- Specified by:
getByteBuffer
in interfaceHttpContent
- Returns:
- a
ByteBuffer
instance or null.
-
getPreCompressedContentFormats
- Specified by:
getPreCompressedContentFormats
in interfaceHttpContent
- Returns:
- Set of available pre-compressed formats for this content, or null if this has not been checked.
-
release
public void release()- Specified by:
release
in interfaceHttpContent
-