PrecompressedHttpContent
, ResourceHttpContent
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 | Description |
---|---|---|
static interface |
HttpContent.ContentFactory |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getCharacterEncoding() |
|
HttpField |
getContentEncoding() |
|
java.lang.String |
getContentEncodingValue() |
|
HttpField |
getContentLength() |
|
long |
getContentLengthValue() |
|
HttpField |
getContentType() |
|
java.lang.String |
getContentTypeValue() |
|
java.nio.ByteBuffer |
getDirectBuffer() |
|
HttpField |
getETag() |
|
java.lang.String |
getETagValue() |
|
java.nio.ByteBuffer |
getIndirectBuffer() |
|
java.io.InputStream |
getInputStream() |
|
HttpField |
getLastModified() |
|
java.lang.String |
getLastModifiedValue() |
|
MimeTypes.Type |
getMimeType() |
|
java.util.Map<CompressedContentFormat,? extends HttpContent> |
getPrecompressedContents() |
|
java.nio.channels.ReadableByteChannel |
getReadableByteChannel() |
|
Resource |
getResource() |
|
void |
release() |
HttpField getContentType()
java.lang.String getContentTypeValue()
java.lang.String getCharacterEncoding()
MimeTypes.Type getMimeType()
HttpField getContentEncoding()
java.lang.String getContentEncodingValue()
HttpField getContentLength()
long getContentLengthValue()
HttpField getLastModified()
java.lang.String getLastModifiedValue()
HttpField getETag()
java.lang.String getETagValue()
java.nio.ByteBuffer getIndirectBuffer()
java.nio.ByteBuffer getDirectBuffer()
Resource getResource()
java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
java.nio.channels.ReadableByteChannel getReadableByteChannel() throws java.io.IOException
java.io.IOException
void release()
java.util.Map<CompressedContentFormat,? extends HttpContent> getPrecompressedContents()
Copyright © 1995–2017 Webtide. All rights reserved.