public final class Vary extends Object
Key for how it's used.| Modifier and Type | Class and Description |
|---|---|
static class |
Vary.VaryComparator |
| Constructor and Description |
|---|
Vary()
Default constructor (no variations)
|
Vary(Headers headers) |
Vary(Map<String,String> headers)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Map<String,String> |
getVaryHeaders() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
matches(HTTPRequest request)
Analyses the headers in the given request to figure out if this
variation matches. |
static Vary |
parse(String value) |
int |
size() |
String |
toString() |
public Vary()
public Vary(Map<String,String> headers)
headers - the vary headers as keys from the response, with request headers as values.public Vary(Headers headers)
public int size()
public boolean isEmpty()
public boolean matches(HTTPRequest request)
variation matches.request - the request to analysetrue if the request matches the variance. false if not.Copyright © 2008-2013. All Rights Reserved.