The parsed cache-control directive of HTTP/1.1
This object gives access to the parsed value of the cache-control
directive of HTTP/1.1, as defined in section 14.9 of the specification.
Constructor Summary
HttpCacheControl(boolean isValid) Create a new empty HttpCacheControl object descriptor.
public
HttpCacheControl() Create a new empty cache control object descriptor.
Method Summary
public void
addNoCache(String name) Add the given header name to the no-cache directive.
Create a new empty HttpCacheControl object descriptor.
Parameters: isValid - A boolean indicating if this object will be filled inby parsing a value, or is for internal purposes.
Check and get the private value.
Parameters: def - The default value if undefined. A list of field-names, as a String array, or the provideddefault value otherwise.
Set the no cache directive to the given list of fields.
Parameters: fields - The fields to set in the no-cache directive, encodedas a String array (whose length can be 0), ornull to reset the value.