Package org.eclipse.jetty.http
Interface HttpContent
- All Known Implementing Classes:
CachedContentFactory.CachedHttpContent
,CachedContentFactory.CachedPrecompressedHttpContent
,PrecompressedHttpContent
,ResourceHttpContent
public interface HttpContent
HttpContent interface.
This information represents all the information about a static resource that is needed to evaluate conditional headers and to serve the content if need be. It can be implemented either transiently (values and fields generated on demand) or persistently (values and fields pre-generated in anticipation of reuse in from a cache).
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getETag()
Map<CompressedContentFormat,
? extends HttpContent> void
release()
-
Method Details
-
getContentType
HttpField getContentType() -
getContentTypeValue
String getContentTypeValue() -
getCharacterEncoding
String getCharacterEncoding() -
getMimeType
MimeTypes.Type getMimeType() -
getContentEncoding
HttpField getContentEncoding() -
getContentEncodingValue
String getContentEncodingValue() -
getContentLength
HttpField getContentLength() -
getContentLengthValue
long getContentLengthValue() -
getLastModified
HttpField getLastModified() -
getLastModifiedValue
String getLastModifiedValue() -
getETag
HttpField getETag() -
getETagValue
String getETagValue() -
getIndirectBuffer
ByteBuffer getIndirectBuffer() -
getDirectBuffer
ByteBuffer getDirectBuffer() -
getResource
Resource getResource() -
getInputStream
- Throws:
IOException
-
getReadableByteChannel
- Throws:
IOException
-
release
void release() -
getPrecompressedContents
Map<CompressedContentFormat,? extends HttpContent> getPrecompressedContents()
-