Package org.eclipse.jetty.http.content
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 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
getETag()
getKey()
long
boolean
isValid()
void
release()
boolean
retain()
void
setLastAccessedNanos
(long nanosTime) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.http.content.HttpContent
getBytesOccupied
-
Constructor Details
-
NotFoundHttpContent
-
-
Method Details
-
getKey
- Specified by:
getKey
in interfaceCachingHttpContentFactory.CachingHttpContent
-
getLastAccessedNanos
public long getLastAccessedNanos()- Specified by:
getLastAccessedNanos
in interfaceCachingHttpContentFactory.CachingHttpContent
-
setLastAccessedNanos
public void setLastAccessedNanos(long nanosTime) - Specified by:
setLastAccessedNanos
in interfaceCachingHttpContentFactory.CachingHttpContent
-
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.
-
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
-
isValid
public boolean isValid()- Specified by:
isValid
in interfaceCachingHttpContentFactory.CachingHttpContent
-
retain
public boolean retain()- Specified by:
retain
in interfaceCachingHttpContentFactory.CachingHttpContent
-