Class CacheControl


  • public class CacheControl
    extends java.lang.Object
    • Field Detail

    • Method Detail

      • of

        public static CacheControl of​(java.net.http.HttpRequest request)
      • of

        public static CacheControl of​(java.net.http.HttpHeaders headers)
      • parse

        public static CacheControl parse​(java.lang.String value)
      • noCache

        public boolean noCache()
      • noStore

        public boolean noStore()
      • mustRevalidate

        public boolean mustRevalidate()
      • maxAge

        public long maxAge()
      • maxAge

        public long maxAge​(java.util.concurrent.TimeUnit unit)
      • maxStale

        public long maxStale()
      • maxStale

        public long maxStale​(java.util.concurrent.TimeUnit unit)
      • minFresh

        public long minFresh()
      • minFresh

        public long minFresh​(java.util.concurrent.TimeUnit unit)
      • staleIfError

        public long staleIfError()
      • staleIfError

        public long staleIfError​(java.util.concurrent.TimeUnit unit)
      • staleWhileRevalidate

        public long staleWhileRevalidate()
      • staleWhileRevalidate

        public long staleWhileRevalidate​(java.util.concurrent.TimeUnit unit)
      • noTransform

        public boolean noTransform()
      • immutable

        public boolean immutable()
      • onlyIfCached

        public boolean onlyIfCached()
      • mustUnderstand

        public boolean mustUnderstand()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object