public class CacheRequestContext extends Object
| Constructor and Description |
|---|
CacheRequestContext(String requestMethod,
URI requestUri,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
String requestHash) |
| Modifier and Type | Method and Description |
|---|---|
static CacheRequestContext |
build(com.sun.jersey.spi.container.ContainerRequest request,
Set<String> vary,
boolean includeBody) |
RequestCacheControl |
getCacheControl()
Get the cache control options set for the request.
|
String |
getRequestHash() |
String |
getRequestMethod() |
URI |
getRequestUri() |
boolean |
isPragmaNoCache()
True if the
Pragma: no-cache header is set on the request. |
public static CacheRequestContext build(com.sun.jersey.spi.container.ContainerRequest request, Set<String> vary, boolean includeBody)
public URI getRequestUri()
public String getRequestMethod()
public String getRequestHash()
public RequestCacheControl getCacheControl()
RequestCacheControl.DEFAULT if no cache-control header is present or the cache-control header is
invalid.public boolean isPragmaNoCache()
Pragma: no-cache header is set on the request.
This header should be treated as equivalent to Cache-Control: no-cache.Copyright © 2014. All Rights Reserved.