|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.httpcache4j.Metadata
org.codehaus.httpcache4j.Tag
public final class Tag
Validation tag equivalent to the HTTP entity tag. "A strong entity tag may be
shared by two entities of a resource only if they are equivalent by octet
equality.
A weak entity tag may be shared by two entities of a resource
only if the entities are equivalent and could be substituted for each other
with no significant change in semantics."
| Field Summary | |
|---|---|
static Tag |
ALL
Tag matching any other tag, used in call's condition data. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Indicates if both tags are equal. |
boolean |
equals(java.lang.Object object,
boolean checkWeakness)
Indicates if both tags are equal. |
java.lang.String |
format()
Returns tag formatted as an HTTP tag string. |
java.lang.String |
getDescription()
Returns the description. |
java.lang.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(java.lang.String httpTag)
Parses a tag formatted as defined by the HTTP standard. |
java.lang.String |
toString()
|
| Methods inherited from class org.codehaus.httpcache4j.Metadata |
|---|
setDescription |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Tag ALL
| Method Detail |
|---|
public static Tag parse(java.lang.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(java.lang.Object object)
equals in class Metadataobject - The object to compare to.
public boolean equals(java.lang.Object object,
boolean checkWeakness)
object - The object to compare to.checkWeakness - the equality test takes care or not of the weakness.
public java.lang.String format()
public java.lang.String getDescription()
getDescription in class Metadatapublic java.lang.String getName()
getName in class Metadatapublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class Metadatapublic boolean isWeak()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||