| Constructor and Description |
|---|
ETag(String tag)
Constructor
|
ETag(String tag,
boolean isWeak)
Constructor
|
ETag(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(IETag other)
Does the ETag strongly matches the other specified
ETag?
|
boolean |
matches(IETag other,
boolean weakComparison)
Does the ETag strongly or weakly matches the other specified
ETag?
|
String |
toString() |
public ETag(String tag)
public ETag(String tag, boolean isWeak)
public ETag(String tag, boolean isWeak, boolean isWildcard)
public boolean isWeak()
IETagpublic boolean isWildcard()
IETagisWildcard in interface IETagpublic String getHeaderValue()
IETaggetHeaderValue in interface IETagpublic boolean matches(IETag other)
IETagIf one (or both) ETag is a wildcard, it matches.
public boolean matches(IETag other, boolean weakComparison)
IETagIf one (or both) ETag is a wildcard, it matches.
Copyright © 2016. All rights reserved.