public final class Tag extends Object
| Modifier and Type | Field and Description |
|---|---|
static Tag |
ALL
Tag matching any other tag, used in call's condition data.
|
| Constructor and Description |
|---|
Tag(String opaqueTag)
Constructor.
|
Tag(String opaqueTag,
boolean weak)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Indicates if both tags are equal.
|
boolean |
equals(Object object,
boolean checkWeakness)
Indicates if both tags are equal.
|
String |
format()
Returns tag formatted as an HTTP tag string.
|
String |
getDescription()
Returns the description.
|
String |
getName()
Returns the name, corresponding to an HTTP opaque tag value.
|
int |
hashCode() |
boolean |
isWeak()
Indicates if the tag is weak.
|
static Tag |
parse(String httpTag)
Parses a tag formatted as defined by the HTTP standard.
|
String |
toString() |
public static final Tag ALL
public Tag(String opaqueTag, boolean weak)
opaqueTag - The tag value.weak - The weakness indicator.public Tag(String opaqueTag)
opaqueTag - The tag value.public static Tag parse(String httpTag)
httpTag - The HTTP tag string; if it starts with 'W/' the tag will be
marked as weak and the data following the 'W/' used as the tag;
otherwise it should be surrounded with quotes (e.g.,
"sometag").public boolean equals(Object object)
public boolean equals(Object object, boolean checkWeakness)
object - The object to compare to.checkWeakness - the equality test takes care or not of the weakness.public String format()
public String getDescription()
public String getName()
public boolean isWeak()
Copyright © 2008-2013. All Rights Reserved.