public interface HttpContent
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).
Modifier and Type | Method and Description |
---|---|
String |
getCharacterEncoding() |
HttpField |
getContentLength() |
long |
getContentLengthValue() |
HttpField |
getContentType() |
String |
getContentTypeValue() |
ByteBuffer |
getDirectBuffer() |
HttpField |
getETag() |
String |
getETagValue() |
ByteBuffer |
getIndirectBuffer() |
InputStream |
getInputStream() |
HttpField |
getLastModified() |
String |
getLastModifiedValue() |
MimeTypes.Type |
getMimeType() |
ReadableByteChannel |
getReadableByteChannel() |
Resource |
getResource() |
void |
release() |
HttpField getContentType()
String getContentTypeValue()
String getCharacterEncoding()
MimeTypes.Type getMimeType()
HttpField getContentLength()
long getContentLengthValue()
HttpField getLastModified()
String getLastModifiedValue()
HttpField getETag()
String getETagValue()
ByteBuffer getIndirectBuffer()
ByteBuffer getDirectBuffer()
Resource getResource()
InputStream getInputStream() throws IOException
IOException
ReadableByteChannel getReadableByteChannel() throws IOException
IOException
void release()
Copyright © 1995-2015 Webtide. All Rights Reserved.