Class ResponseCacheControl.Builder
java.lang.Object
org.apache.hc.client5.http.cache.ResponseCacheControl.Builder
- Enclosing class:
ResponseCacheControl
- Since:
- 5.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate longprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate longprivate longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()longlonglonglongbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleansetCachePrivate(boolean cachePrivate) setCachePublic(boolean cachePublic) setImmutable(boolean immutable) setMaxAge(long maxAge) setMustRevalidate(boolean mustRevalidate) setMustUnderstand(boolean mustUnderstand) setNoCache(boolean noCache) setNoCacheFields(String... noCacheFields) setNoCacheFields(Set<String> noCacheFields) setNoStore(boolean noStore) setProxyRevalidate(boolean proxyRevalidate) setSharedMaxAge(long sharedMaxAge) setStaleIfError(long staleIfError) setStaleWhileRevalidate(long staleWhileRevalidate)
-
Field Details
-
maxAge
private long maxAge -
noCache
private boolean noCache -
noStore
private boolean noStore -
cachePrivate
private boolean cachePrivate -
mustRevalidate
private boolean mustRevalidate -
proxyRevalidate
private boolean proxyRevalidate -
cachePublic
private boolean cachePublic -
staleWhileRevalidate
private long staleWhileRevalidate -
staleIfError
private long staleIfError -
noCacheFields
-
mustUnderstand
private boolean mustUnderstand -
immutable
private boolean immutable
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
getMaxAge
public long getMaxAge() -
setMaxAge
-
isNoCache
public boolean isNoCache() -
setNoCache
-
isNoStore
public boolean isNoStore() -
setNoStore
-
isCachePrivate
public boolean isCachePrivate() -
setCachePrivate
-
isMustRevalidate
public boolean isMustRevalidate() -
setMustRevalidate
-
isProxyRevalidate
public boolean isProxyRevalidate() -
setProxyRevalidate
-
isCachePublic
public boolean isCachePublic() -
setCachePublic
-
getStaleWhileRevalidate
public long getStaleWhileRevalidate() -
setStaleWhileRevalidate
-
getStaleIfError
public long getStaleIfError() -
setStaleIfError
-
getNoCacheFields
-
setNoCacheFields
-
setNoCacheFields
-
isMustUnderstand
public boolean isMustUnderstand() -
setMustUnderstand
-
isImmutable
public boolean isImmutable() -
setImmutable
-
build
-