|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.ws.rest.api.core.EntityTag
public class EntityTag
An abstraction for the value of a HTTP Entity Tag, used as the value of an ETag response header.
Constructor Summary | |
---|---|
EntityTag(java.lang.String value)
Creates a new instance of a strong EntityTag |
|
EntityTag(java.lang.String value,
boolean weak)
Creates a new instance of an EntityTag |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares obj to this tag to see if they are the same considering weakness and value. |
java.lang.String |
getValue()
Get the value of an EntityTag |
boolean |
isWeak()
Check the strength of an EntityTag |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityTag(java.lang.String value)
value
- the value of the tagpublic EntityTag(java.lang.String value, boolean weak)
value
- the value of the tagweak
- true if this represents a weak tag, false otherwiseMethod Detail |
---|
public boolean isWeak()
public java.lang.String getValue()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |