public class CacheControl extends Object
Note: This class ignores 1#field-name parameter for private and no-cache directive and cache extensions.
| Constructor and Description |
|---|
CacheControl() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxAge(boolean sharedCache)
Returns max-age, or s-maxage according to whether
considering a shared cache, or a private cache.
|
static CacheControl |
parseCacheControl(org.springframework.http.HttpHeaders headers) |
static CacheControl |
valueOf(String value)
Creates a new instance of CacheControl by parsing the supplied string.
|
public static CacheControl valueOf(String value)
value - A value the Cache-Control header.public static CacheControl parseCacheControl(org.springframework.http.HttpHeaders headers)
public int getMaxAge(boolean sharedCache)
Copyright © 2014. All rights reserved.