Package org.eclipse.jetty.http
Interface HttpContent
-
- All Known Implementing Classes:
PrecompressedHttpContent,ResourceHttpContent
public interface HttpContentHttpContent 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
Nested Classes Modifier and Type Interface Description static interfaceHttpContent.ContentFactory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCharacterEncoding()HttpFieldgetContentEncoding()StringgetContentEncodingValue()HttpFieldgetContentLength()longgetContentLengthValue()HttpFieldgetContentType()StringgetContentTypeValue()ByteBuffergetDirectBuffer()HttpFieldgetETag()StringgetETagValue()ByteBuffergetIndirectBuffer()InputStreamgetInputStream()HttpFieldgetLastModified()StringgetLastModifiedValue()MimeTypes.TypegetMimeType()Map<CompressedContentFormat,? extends HttpContent>getPrecompressedContents()ReadableByteChannelgetReadableByteChannel()org.eclipse.jetty.util.resource.ResourcegetResource()voidrelease()
-
-
-
Method Detail
-
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
org.eclipse.jetty.util.resource.Resource getResource()
-
getInputStream
InputStream getInputStream() throws IOException
- Throws:
IOException
-
getReadableByteChannel
ReadableByteChannel getReadableByteChannel() throws IOException
- Throws:
IOException
-
release
void release()
-
getPrecompressedContents
Map<CompressedContentFormat,? extends HttpContent> getPrecompressedContents()
-
-