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 | Interface and Description |
---|---|
static interface |
HttpContent.ContentFactory |
Modifier and Type | Method and Description |
---|---|
String |
getCharacterEncoding() |
HttpField |
getContentEncoding() |
String |
getContentEncodingValue() |
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() |
Map<CompressedContentFormat,? extends HttpContent> |
getPrecompressedContents() |
ReadableByteChannel |
getReadableByteChannel() |
Resource |
getResource() |
void |
release() |
HttpField getContentType()
String getContentTypeValue()
String getCharacterEncoding()
MimeTypes.Type getMimeType()
HttpField getContentEncoding()
String getContentEncodingValue()
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()
Map<CompressedContentFormat,? extends HttpContent> getPrecompressedContents()
Copyright © 2010 - 2020 Adobe. All Rights Reserved