Class SimpleCachedContent

java.lang.Object
net.solarnetwork.central.web.support.SimpleCachedContent
All Implemented Interfaces:
Serializable, CachedContent

public class SimpleCachedContent extends Object implements CachedContent
Simple cached content item.
Since:
1.16
See Also:
  • Constructor Details

    • SimpleCachedContent

      public SimpleCachedContent(org.springframework.util.MultiValueMap<String,String> headers, byte[] data)
      Constructor.
      Parameters:
      headers - the headers; must be fully serializable
      data - the data
    • SimpleCachedContent

      public SimpleCachedContent(org.springframework.util.MultiValueMap<String,String> headers, byte[] data, String contentEncoding)
      Constructor.
      Parameters:
      headers - the headers; must be fully serializable
      data - the data
      contentEncoding - the content encoding, or null
    • SimpleCachedContent

      public SimpleCachedContent(org.springframework.util.MultiValueMap<String,String> headers, byte[] data, String contentEncoding, Map<String,?> metadata)
      Constructor.
      Parameters:
      headers - the headers; must be fully serializable
      data - the data
      contentEncoding - the content encoding, or null
      metadata - the metadata, or null; must be fully serializable
  • Method Details