| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private static final RuntimeDelegate. | |
| private int | |
| private boolean | |
| private boolean | |
| private List | |
| private boolean | |
| private boolean | |
| private List | |
| private boolean | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the two cache controls are the same, false otherwise.the object to compare to obj)Overrides java. |
| public Map | Returns: a mutable map of cache control extension names and their values. If a key has a null value, it will appear as a bare directive. If a key has a value that contains no whitespace then the directive will appear as a simple name=value pair. If a key has a value that contains whitespace then the directive will appear as a quoted name="value" pair.Corresponds to a set of extension cache control directives. |
| public int | Returns: the value of the max-age cache control directive, -1 if the directive is disabled.Corresponds to the max-age cache control directive. |
| public List | Returns: a mutable list of field-names that will form the value of the no-cache cache control directive. An empty list results in a bare no-cache directive.Corresponds to the value of the no-cache cache control directive. |
| public List | Returns: a mutable list of field-names that will form the value of the private cache control directive. An empty list results in a bare no-cache directive.Corresponds to the value of the private cache control directive. |
| public int | Returns: the value of the s-maxage cache control directive, -1 if the directive is disabled.Corresponds to the s-maxage cache control directive. |
| public int | Returns: the hashCodeOverrides java. |
| private static int | Returns: hash code for the collection, ifnull or empty, the returned hash code is 0 (zero).collection, may be instance)null.Compute a |
| private static int | Returns: hash code for the map, ifnull or empty, the returned hash code is 0 (zero).map, may be instance)null.Compute a |
| public boolean | Returns: true if the must-revalidate cache control directive will be included in the response, false otherwise.Corresponds to the must-revalidate cache control directive. |
| public boolean | Returns: true if the no-cache cache control directive will be included in the response, false otherwise.Corresponds to the no-cache cache control directive. |
| public boolean | Returns: true if the no-store cache control directive will be included in the response, false otherwise.Corresponds to the no-store cache control directive. |
| public boolean | Returns: true if the no-transform cache control directive will be included in the response, false otherwise.Corresponds to the no-transform cache control directive. |
| public boolean | Returns: true if the private cache control directive will be included in the response, false otherwise.Corresponds to the private cache control directive. |
| public boolean | Returns: true if the proxy-revalidate cache control directive will be included in the response, false otherwise.Corresponds to the proxy-revalidate cache control directive. |
| private static boolean | Returns: true if the two collections are not equal, false if the two collections are equal
(or one of them is null and the other one is empty).first collection. May be first, Collection<?> null.second collection. May be second)null.Check if two collections are not equal. |
| private static boolean | |
| public void | setMaxAge(final int
the value of the max-age cache control directive, a value of -1 will disable the directive. maxAge)Corresponds to the max-age cache control directive. |
| public void | setMustRevalidate(final boolean
true if the must-revalidate cache control directive should be included in the
response, false otherwise. mustRevalidate)Corresponds to the must-revalidate cache control directive. |
| public void | setNoCache(final boolean
true if the no-cache cache control directive should be included in the
response, false otherwise. noCache)Corresponds to the no-cache cache control directive. |
| public void | setNoStore(final boolean
true if the no-store cache control directive should be included in the
response, false otherwise. noStore)Corresponds to the no-store cache control directive. |
| public void | setNoTransform(final boolean
true if the no-transform cache control directive should be included in the
response, false otherwise. noTransform)Corresponds to the no-transform cache control directive. |
| public void | setPrivate(final boolean
true if the private cache control directive should be included in the
response, false otherwise. flag)Corresponds to the private cache control directive. |
| public void | setProxyRevalidate(final boolean
true if the proxy-revalidate cache control directive should be included in the
response, false otherwise. proxyRevalidate)Corresponds to the must-revalidate cache control directive. |
| public void | setSMaxAge(final int
the value of the s-maxage cache control directive, a value of -1 will disable the directive. sMaxAge)Corresponds to the s-maxage cache control directive. |
| public String | Returns: a stringified cache controlOverrides java. |
| public static CacheControl |
| cacheExtension | back to summary |
|---|---|
| private Map<String, String> cacheExtension | |
| HEADER_DELEGATE | back to summary |
|---|---|
| private static final RuntimeDelegate. | |
| maxAge | back to summary |
|---|---|
| private int maxAge | |
| mustRevalidate | back to summary |
|---|---|
| private boolean mustRevalidate | |
| noCache | back to summary |
|---|---|
| private boolean noCache | |
| noCacheFields | back to summary |
|---|---|
| private List<String> noCacheFields | |
| noStore | back to summary |
|---|---|
| private boolean noStore | |
| noTransform | back to summary |
|---|---|
| private boolean noTransform | |
| privateFields | back to summary |
|---|---|
| private List<String> privateFields | |
| privateFlag | back to summary |
|---|---|
| private boolean privateFlag | |
| proxyRevalidate | back to summary |
|---|---|
| private boolean proxyRevalidate | |
| sMaxAge | back to summary |
|---|---|
| private int sMaxAge | |
| CacheControl | back to summary |
|---|---|
| public CacheControl() Create a new instance of CacheControl. The new instance will have the following default settings:
| |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Compares object argument to this cache control to see if they are the same considering all property values. | |
| getCacheExtension | back to summary |
|---|---|
| public Map Corresponds to a set of extension cache control directives.
| |
| getMaxAge | back to summary |
|---|---|
| public int getMaxAge() Corresponds to the max-age cache control directive.
| |
| getNoCacheFields | back to summary |
|---|---|
| public List Corresponds to the value of the no-cache cache control directive.
| |
| getPrivateFields | back to summary |
|---|---|
| public List Corresponds to the value of the private cache control directive.
| |
| getSMaxAge | back to summary |
|---|---|
| public int getSMaxAge() Corresponds to the s-maxage cache control directive.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Generate hash code from cache control properties.
| |
| hashCodeOf | back to summary |
|---|---|
| private static int hashCodeOf(Collection<?> instance) Compute a
| |
| hashCodeOf | back to summary |
|---|---|
| private static int hashCodeOf(Map<?, ?> instance) Compute a
| |
| isMustRevalidate | back to summary |
|---|---|
| public boolean isMustRevalidate() Corresponds to the must-revalidate cache control directive.
| |
| isNoCache | back to summary |
|---|---|
| public boolean isNoCache() Corresponds to the no-cache cache control directive.
| |
| isNoStore | back to summary |
|---|---|
| public boolean isNoStore() Corresponds to the no-store cache control directive.
| |
| isNoTransform | back to summary |
|---|---|
| public boolean isNoTransform() Corresponds to the no-transform cache control directive.
| |
| isPrivate | back to summary |
|---|---|
| public boolean isPrivate() Corresponds to the private cache control directive.
| |
| isProxyRevalidate | back to summary |
|---|---|
| public boolean isProxyRevalidate() Corresponds to the proxy-revalidate cache control directive.
| |
| notEqual | back to summary |
|---|---|
| private static boolean notEqual(Collection<?> first, Collection<?> second) Check if two collections are not equal.
If one of the collections is
| |
| notEqual | back to summary |
|---|---|
| private static boolean notEqual(Map<?, ?> first, Map<?, ?> second) Check if two maps are not equal.
If one of the maps is | |
| setMaxAge | back to summary |
|---|---|
| public void setMaxAge(final int maxAge) Corresponds to the max-age cache control directive.
| |
| setMustRevalidate | back to summary |
|---|---|
| public void setMustRevalidate(final boolean mustRevalidate) Corresponds to the must-revalidate cache control directive.
| |
| setNoCache | back to summary |
|---|---|
| public void setNoCache(final boolean noCache) Corresponds to the no-cache cache control directive.
| |
| setNoStore | back to summary |
|---|---|
| public void setNoStore(final boolean noStore) Corresponds to the no-store cache control directive.
| |
| setNoTransform | back to summary |
|---|---|
| public void setNoTransform(final boolean noTransform) Corresponds to the no-transform cache control directive.
| |
| setPrivate | back to summary |
|---|---|
| public void setPrivate(final boolean flag) Corresponds to the private cache control directive.
| |
| setProxyRevalidate | back to summary |
|---|---|
| public void setProxyRevalidate(final boolean proxyRevalidate) Corresponds to the must-revalidate cache control directive.
| |
| setSMaxAge | back to summary |
|---|---|
| public void setSMaxAge(final int sMaxAge) Corresponds to the s-maxage cache control directive.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Convert the cache control to a string suitable for use as the value of the corresponding HTTP header. | |
| valueOf | back to summary |
|---|---|
| public static CacheControl valueOf(final String value) Creates a new instance of CacheControl by parsing the supplied string.
| |