Class HttpContent.Wrapper
java.lang.Object
org.eclipse.jetty.http.content.HttpContent.Wrapper
- All Implemented Interfaces:
HttpContent
- Direct Known Subclasses:
CachingHttpContentFactory.CachedHttpContent
- Enclosing interface:
HttpContent
HttpContent Wrapper.
-
Nested Class Summary
Nested classes/interfaces inherited from interface HttpContent
HttpContent.Factory, HttpContent.Wrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet this HTTP content as aByteBufferif possible.longlonggetETag()voidrelease()toString()
-
Constructor Details
-
Wrapper
-
-
Method Details
-
getWrapped
-
getContentType
- Specified by:
getContentTypein interfaceHttpContent
-
getContentTypeValue
- Specified by:
getContentTypeValuein interfaceHttpContent
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfaceHttpContent
-
getMimeType
- Specified by:
getMimeTypein interfaceHttpContent
-
getContentEncoding
- Specified by:
getContentEncodingin interfaceHttpContent
-
getContentEncodingValue
- Specified by:
getContentEncodingValuein interfaceHttpContent
-
getContentLength
- Specified by:
getContentLengthin interfaceHttpContent
-
getContentLengthValue
public long getContentLengthValue()- Specified by:
getContentLengthValuein interfaceHttpContent
-
getLastModifiedInstant
- Specified by:
getLastModifiedInstantin interfaceHttpContent
-
getLastModified
- Specified by:
getLastModifiedin interfaceHttpContent
-
getLastModifiedValue
- Specified by:
getLastModifiedValuein interfaceHttpContent
-
getETag
- Specified by:
getETagin interfaceHttpContent
-
getETagValue
- Specified by:
getETagValuein interfaceHttpContent
-
getResource
- Specified by:
getResourcein interfaceHttpContent
-
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.
-
getBytesOccupied
public long getBytesOccupied()- Specified by:
getBytesOccupiedin interfaceHttpContent
-
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
-
toString
-