Package org.eclipse.jetty.http.content
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 org.eclipse.jetty.http.content.HttpContent
HttpContent.Factory, HttpContent.Wrapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet this HTTP content as aByteBuffer
if possible.long
long
getETag()
void
release()
toString()
-
Constructor Details
-
Wrapper
-
-
Method Details
-
getWrapped
-
getContentType
- Specified by:
getContentType
in interfaceHttpContent
-
getContentTypeValue
- Specified by:
getContentTypeValue
in interfaceHttpContent
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfaceHttpContent
-
getMimeType
- Specified by:
getMimeType
in interfaceHttpContent
-
getContentEncoding
- Specified by:
getContentEncoding
in interfaceHttpContent
-
getContentEncodingValue
- Specified by:
getContentEncodingValue
in interfaceHttpContent
-
getContentLength
- Specified by:
getContentLength
in interfaceHttpContent
-
getContentLengthValue
public long getContentLengthValue()- Specified by:
getContentLengthValue
in interfaceHttpContent
-
getLastModifiedInstant
- Specified by:
getLastModifiedInstant
in interfaceHttpContent
-
getLastModified
- Specified by:
getLastModified
in interfaceHttpContent
-
getLastModifiedValue
- Specified by:
getLastModifiedValue
in interfaceHttpContent
-
getETag
- Specified by:
getETag
in interfaceHttpContent
-
getETagValue
- Specified by:
getETagValue
in interfaceHttpContent
-
getResource
- Specified by:
getResource
in interfaceHttpContent
-
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.
-
getBytesOccupied
public long getBytesOccupied()- Specified by:
getBytesOccupied
in interfaceHttpContent
-
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
-
toString
-