Class CachingHttpContentFactory.NotFoundHttpContent
java.lang.Object
org.eclipse.jetty.http.content.CachingHttpContentFactory.NotFoundHttpContent
- All Implemented Interfaces:
CachingHttpContentFactory.CachingHttpContent, HttpContent
- Direct Known Subclasses:
ValidatingCachingHttpContentFactory.ValidatingNotFoundContent
- Enclosing class:
CachingHttpContentFactory
protected static class CachingHttpContentFactory.NotFoundHttpContent
extends Object
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.longgetETag()getKey()longbooleanisValid()voidrelease()booleanretain()voidsetLastAccessedNanos(long nanosTime) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HttpContent
getBytesOccupied
-
Constructor Details
-
NotFoundHttpContent
-
-
Method Details
-
getKey
- Specified by:
getKeyin interfaceCachingHttpContentFactory.CachingHttpContent
-
getLastAccessedNanos
public long getLastAccessedNanos()- Specified by:
getLastAccessedNanosin interfaceCachingHttpContentFactory.CachingHttpContent
-
setLastAccessedNanos
public void setLastAccessedNanos(long nanosTime) - Specified by:
setLastAccessedNanosin interfaceCachingHttpContentFactory.CachingHttpContent
-
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.
-
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
-
isValid
public boolean isValid()- Specified by:
isValidin interfaceCachingHttpContentFactory.CachingHttpContent
-
retain
public boolean retain()- Specified by:
retainin interfaceCachingHttpContentFactory.CachingHttpContent
-