public static class ResponseCacheControl.Builder extends Object
public long getMaxAge()
public ResponseCacheControl.Builder setMaxAge(long maxAge)
public long getSharedMaxAge()
public ResponseCacheControl.Builder setSharedMaxAge(long sharedMaxAge)
public boolean isNoCache()
public ResponseCacheControl.Builder setNoCache(boolean noCache)
public boolean isNoStore()
public ResponseCacheControl.Builder setNoStore(boolean noStore)
public boolean isCachePrivate()
public ResponseCacheControl.Builder setCachePrivate(boolean cachePrivate)
public boolean isMustRevalidate()
public ResponseCacheControl.Builder setMustRevalidate(boolean mustRevalidate)
public boolean isProxyRevalidate()
public ResponseCacheControl.Builder setProxyRevalidate(boolean proxyRevalidate)
public boolean isCachePublic()
public ResponseCacheControl.Builder setCachePublic(boolean cachePublic)
public long getStaleWhileRevalidate()
public ResponseCacheControl.Builder setStaleWhileRevalidate(long staleWhileRevalidate)
public long getStaleIfError()
public ResponseCacheControl.Builder setStaleIfError(long staleIfError)
public ResponseCacheControl.Builder setNoCacheFields(Set<String> noCacheFields)
public ResponseCacheControl.Builder setNoCacheFields(String... noCacheFields)
public boolean isMustUnderstand()
public ResponseCacheControl.Builder setMustUnderstand(boolean mustUnderstand)
public boolean isImmutable()
public ResponseCacheControl.Builder setImmutable(boolean immutable)
public ResponseCacheControl build()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.