| Constructor and Description |
|---|
ETagDefault(String tag)
Constructor
|
ETagDefault(String tag,
boolean isWeak)
Constructor
|
ETagDefault(String tag,
boolean isWeak,
boolean isWildcard)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getHeaderValue()
Gets the HTTP header value to use for this ETag.
|
String |
getTag()
Gets the tag text.
|
int |
hashCode() |
boolean |
isWeak()
Is it weak?
|
boolean |
isWildcard()
Is it a wildcard ETag?
|
boolean |
matches(ETag other)
Does the ETag strongly matches the other specified
ETag?
|
boolean |
matches(ETag other,
boolean weakComparison)
Does the ETag strongly or weakly matches the other specified
ETag?
|
String |
toString() |
public ETagDefault(String tag)
public ETagDefault(String tag, boolean isWeak)
public ETagDefault(String tag, boolean isWeak, boolean isWildcard)
public boolean isWeak()
ETagpublic boolean isWildcard()
ETagisWildcard in interface ETagpublic String getHeaderValue()
ETaggetHeaderValue in interface ETagpublic boolean matches(ETag other)
ETagIf one (or both) ETag is a wildcard, it matches.
public boolean matches(ETag other, boolean weakComparison)
ETagIf one (or both) ETag is a wildcard, it matches.
Copyright © 2017. All rights reserved.