public static class RequestCacheControl.Builder extends Object
Modifier and Type | Method and Description |
---|---|
RequestCacheControl |
build() |
long |
getMaxAge() |
long |
getMaxStale() |
long |
getMinFresh() |
long |
getStaleIfError() |
boolean |
isNoCache() |
boolean |
isNoStore() |
boolean |
isOnlyIfCached() |
RequestCacheControl.Builder |
setMaxAge(long maxAge) |
RequestCacheControl.Builder |
setMaxStale(long maxStale) |
RequestCacheControl.Builder |
setMinFresh(long minFresh) |
RequestCacheControl.Builder |
setNoCache(boolean noCache) |
RequestCacheControl.Builder |
setNoStore(boolean noStore) |
RequestCacheControl.Builder |
setOnlyIfCached(boolean onlyIfCached) |
RequestCacheControl.Builder |
setStaleIfError(long staleIfError) |
public long getMaxAge()
public RequestCacheControl.Builder setMaxAge(long maxAge)
public long getMaxStale()
public RequestCacheControl.Builder setMaxStale(long maxStale)
public long getMinFresh()
public RequestCacheControl.Builder setMinFresh(long minFresh)
public boolean isNoCache()
public RequestCacheControl.Builder setNoCache(boolean noCache)
public boolean isNoStore()
public RequestCacheControl.Builder setNoStore(boolean noStore)
public boolean isOnlyIfCached()
public RequestCacheControl.Builder setOnlyIfCached(boolean onlyIfCached)
public long getStaleIfError()
public RequestCacheControl.Builder setStaleIfError(long staleIfError)
public RequestCacheControl build()
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.