Class PreCompressedHttpContent
java.lang.Object
org.eclipse.jetty.http.content.PreCompressedHttpContent
- All Implemented Interfaces:
HttpContent
-
Nested Class Summary
Nested classes/interfaces inherited from interface HttpContent
HttpContent.Factory, HttpContent.Wrapper -
Constructor Summary
ConstructorsConstructorDescriptionPreCompressedHttpContent(HttpContent content, HttpContent precompressedContent, CompressedContentFormat format) -
Method Summary
Modifier and TypeMethodDescriptionGet this HTTP content as aByteBufferif possible.longgetETag()voidrelease()toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface HttpContent
getBytesOccupied
-
Constructor Details
-
PreCompressedHttpContent
public PreCompressedHttpContent(HttpContent content, HttpContent precompressedContent, CompressedContentFormat format)
-
-
Method Details
-
getResource
- Specified by:
getResourcein interfaceHttpContent
-
getETag
- Specified by:
getETagin interfaceHttpContent
-
getETagValue
- Specified by:
getETagValuein interfaceHttpContent
-
getLastModifiedInstant
- Specified by:
getLastModifiedInstantin interfaceHttpContent
-
getLastModified
- Specified by:
getLastModifiedin interfaceHttpContent
-
getLastModifiedValue
- Specified by:
getLastModifiedValuein interfaceHttpContent
-
getContentType
- Specified by:
getContentTypein interfaceHttpContent
-
getContentTypeValue
- Specified by:
getContentTypeValuein interfaceHttpContent
-
getContentEncoding
- Specified by:
getContentEncodingin interfaceHttpContent
-
getContentEncodingValue
- Specified by:
getContentEncodingValuein interfaceHttpContent
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfaceHttpContent
-
getMimeType
- Specified by:
getMimeTypein interfaceHttpContent
-
getContentLength
- Specified by:
getContentLengthin interfaceHttpContent
-
getContentLengthValue
public long getContentLengthValue()- Specified by:
getContentLengthValuein interfaceHttpContent
-
toString
-
getByteBuffer
Description copied from interface:HttpContentGet this HTTP content as a
ByteBufferif possible.Each invocation returns a new
ByteBufferinstance that is read-only and contains valid data between the pos and the limit.- Specified by:
getByteBufferin interfaceHttpContent- Returns:
- a
ByteBufferinstance or null.
-
getPreCompressedContentFormats
- Specified by:
getPreCompressedContentFormatsin 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:
releasein interfaceHttpContent
-