CacheControl.Builder |
CacheControl.Builder.anyMaxStale() |
Sets the max-stale directive to accept any stale response.
|
CacheControl.Builder |
CacheControl.Builder.directive(java.lang.String directive) |
Sets the given directive with no argument.
|
CacheControl.Builder |
CacheControl.Builder.directive(java.lang.String directive,
java.lang.String argument) |
Sets the given directive to the given argument.
|
CacheControl.Builder |
CacheControl.Builder.maxAge(java.time.Duration maxAge) |
Sets the max-age directive to the given duration.
|
CacheControl.Builder |
CacheControl.Builder.maxStale(java.time.Duration maxStale) |
Sets the max-stale directive to the given duration.
|
CacheControl.Builder |
CacheControl.Builder.minFresh(java.time.Duration minFresh) |
Sets the min-fresh directive to the given duration.
|
static CacheControl.Builder |
CacheControl.newBuilder() |
Returns a new Builder.
|
CacheControl.Builder |
CacheControl.Builder.noCache() |
Sets the no-cache directive.
|
CacheControl.Builder |
CacheControl.Builder.noStore() |
Sets the no-store directive.
|
CacheControl.Builder |
CacheControl.Builder.noTransform() |
Sets the no-transform directive.
|
CacheControl.Builder |
CacheControl.Builder.onlyIfCached() |
Sets the only-if-cached directive.
|
CacheControl.Builder |
CacheControl.Builder.staleIfError(java.time.Duration staleIfError) |
Sets the stale-if-error directive to the given duration.
|