Class CachingHttpContentFactory.CachedHttpContent
java.lang.Object
org.eclipse.jetty.http.content.HttpContent.Wrapper
org.eclipse.jetty.http.content.CachingHttpContentFactory.CachedHttpContent
- All Implemented Interfaces:
CachingHttpContentFactory.CachingHttpContent, HttpContent
- Direct Known Subclasses:
ValidatingCachingHttpContentFactory.ValidatingCachedContent
- Enclosing class:
CachingHttpContentFactory
protected class CachingHttpContentFactory.CachedHttpContent
extends HttpContent.Wrapper
implements CachingHttpContentFactory.CachingHttpContent
-
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()getKey()longbooleanisValid()voidrelease()booleanretain()voidsetLastAccessedNanos(long nanosTime) Methods inherited from class HttpContent.Wrapper
getContentEncoding, getContentEncodingValue, getContentType, getContentTypeValue, getResource, getWrapped, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface HttpContent
getContentEncoding, getContentEncodingValue, getContentType, getContentTypeValue, getResource
-
Constructor Details
-
CachedHttpContent
-
-
Method Details
-
getContentLengthValue
public long getContentLengthValue()- Specified by:
getContentLengthValuein interfaceHttpContent- Overrides:
getContentLengthValuein classHttpContent.Wrapper
-
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- Overrides:
getByteBufferin classHttpContent.Wrapper- Returns:
- a
ByteBufferinstance or null.
-
getBytesOccupied
public long getBytesOccupied()- Specified by:
getBytesOccupiedin interfaceHttpContent- Overrides:
getBytesOccupiedin classHttpContent.Wrapper
-
getLastAccessedNanos
public long getLastAccessedNanos()- Specified by:
getLastAccessedNanosin interfaceCachingHttpContentFactory.CachingHttpContent
-
setLastAccessedNanos
public void setLastAccessedNanos(long nanosTime) - Specified by:
setLastAccessedNanosin interfaceCachingHttpContentFactory.CachingHttpContent
-
getKey
- Specified by:
getKeyin interfaceCachingHttpContentFactory.CachingHttpContent
-
retain
public boolean retain()- Specified by:
retainin interfaceCachingHttpContentFactory.CachingHttpContent
-
release
public void release()- Specified by:
releasein interfaceHttpContent- Overrides:
releasein classHttpContent.Wrapper
-
getPreCompressedContentFormats
- Specified by:
getPreCompressedContentFormatsin interfaceHttpContent- Overrides:
getPreCompressedContentFormatsin classHttpContent.Wrapper- Returns:
- Set of available pre-compressed formats for this content, or null if this has not been checked.
-
getETag
- Specified by:
getETagin interfaceHttpContent- Overrides:
getETagin classHttpContent.Wrapper
-
getETagValue
- Specified by:
getETagValuein interfaceHttpContent- Overrides:
getETagValuein classHttpContent.Wrapper
-
getCharacterEncoding
- Specified by:
getCharacterEncodingin interfaceHttpContent- Overrides:
getCharacterEncodingin classHttpContent.Wrapper
-
getMimeType
- Specified by:
getMimeTypein interfaceHttpContent- Overrides:
getMimeTypein classHttpContent.Wrapper
-
getContentLength
- Specified by:
getContentLengthin interfaceHttpContent- Overrides:
getContentLengthin classHttpContent.Wrapper
-
getLastModifiedInstant
- Specified by:
getLastModifiedInstantin interfaceHttpContent- Overrides:
getLastModifiedInstantin classHttpContent.Wrapper
-
getLastModified
- Specified by:
getLastModifiedin interfaceHttpContent- Overrides:
getLastModifiedin classHttpContent.Wrapper
-
getLastModifiedValue
- Specified by:
getLastModifiedValuein interfaceHttpContent- Overrides:
getLastModifiedValuein classHttpContent.Wrapper
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceCachingHttpContentFactory.CachingHttpContent
-