Uses of Class
org.apache.juneau.http.header.CacheControl.Builder
Packages that use CacheControl.Builder
Package
Description
Next-generation HTTP header implementations.
REST Server API
-
Uses of CacheControl.Builder in org.apache.juneau.http.header
Methods in org.apache.juneau.http.header that return CacheControl.BuilderModifier and TypeMethodDescriptionstatic CacheControl.BuilderCacheControl.create()Creates a new emptyCacheControl.Builder.Adds an arbitrary cache-control extension directive (e.g.CacheControl.Builder.immutable()Adds theimmutable directive.CacheControl.Builder.maxAge(long seconds) Adds themax-age=N directive (seconds).Adds themax-age=N directive from aDuration.CacheControl.Builder.mustRevalidate()Adds themust-revalidate directive.CacheControl.Builder.noCache()Adds theno-cache directive.CacheControl.Builder.noStore()Adds theno-store directive.CacheControl.Builder.noTransform()Adds theno-transform directive.CacheControl.Builder.privateCache()Adds theprivate directive (responses may only be cached by the originating client).CacheControl.Builder.proxyRevalidate()Adds theproxy-revalidate directive (must-revalidate for shared caches only).CacheControl.Builder.publicCache()Adds thepublic directive (responses may be cached by any cache).CacheControl.Builder.sMaxAge(long seconds) Adds thes-maxage=N directive (shared-cache max-age in seconds).Adds thes-maxage=N directive from aDuration.CacheControl.Builder.staleIfError(long seconds) Adds thestale-if-error=N directive (seconds).CacheControl.Builder.staleWhileRevalidate(long seconds) Adds thestale-while-revalidate=N directive (seconds). -
Uses of CacheControl.Builder in org.apache.juneau.rest.server
Methods in org.apache.juneau.rest.server with parameters of type CacheControl.BuilderModifier and TypeMethodDescriptionRestResponse.cacheControl(CacheControl.Builder value) Sets theCache-Control response header from aCacheControl.Builder.