Interface CachedContent

All Superinterfaces:
Serializable
All Known Implementing Classes:
SimpleCachedContent

public interface CachedContent extends Serializable
API for cached content items.
Since:
1.16
  • Method Details

    • getHeaders

      org.springframework.util.MultiValueMap<String,String> getHeaders()
      Get header information about the content.
      Returns:
      the headers
    • getMetadata

      Map<String,?> 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

      InputStream getContent() throws IOException
      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