Class CachedResponse

  • All Implemented Interfaces:
    Serializable

    public class CachedResponse
    extends Object
    implements Serializable
    A simple value object representing an element of the site cache. Instances of this class will be put into the cache.
    Author:
    Matthias Herlitzius, Matthias Müller
    See Also:
    Serialized Form
    • Field Detail

      • servletPath

        protected String servletPath
      • queryString

        protected String queryString
      • contentType

        protected String contentType
      • contentLength

        protected int contentLength
      • headers

        protected org.springframework.http.HttpHeaders headers
      • data

        protected byte[] data
    • Constructor Detail

      • CachedResponse

        public CachedResponse​(String id,
                              Site site,
                              javax.servlet.http.HttpServletRequest request,
                              int status,
                              String contentType,
                              byte[] data,
                              org.springframework.http.HttpHeaders headers,
                              int timeToLive)
    • Method Detail

      • incrementHit

        public long incrementHit()
      • getHitCount

        public long getHitCount()
      • isOk

        public boolean isOk()