Interface CachedContent
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
SimpleCachedContent
API for cached content items.
- Since:
- 1.16
-
Method Summary
Modifier and TypeMethodDescriptionGet the content.Get the content encoding.intGet the length of the content.Get header information about the content.Get metadata about the content.
-
Method Details
-
getHeaders
Get header information about the content.- Returns:
- the headers
-
getMetadata
Get metadata about the content.- Returns:
- the metadata, never null
-
getContentEncoding
String getContentEncoding()Get the content encoding.- Returns:
- the encoding, for example gzip or null
-
getContent
Get the content.- Returns:
- access to the content, or null if none
- Throws:
IOException- if any IO error occurs
-
getContentLength
int getContentLength()Get the length of the content.- Returns:
- the length
-