|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.webdav.internal.kernel.ConditionFactor
org.eclipse.webdav.internal.kernel.EntityTag
public class EntityTag
An EntityTag is a ConditionFactor describing some state of a resource represented as an opaque string. See section 3.11 of the HTTP/1.1 spec.
Constructor Summary | |
---|---|
EntityTag(String tag)
Construct a EntityTag with the given opaque string tag. |
Method Summary | |
---|---|
static ConditionFactor |
create(StreamTokenizer tokenizer)
Create an EntityTag by parsing the given If header as defined by section 3.11 of the HTTP/1.1 spec. |
boolean |
equals(Object etag)
Compare with another EntityTag. |
static EntityTag |
generateEntityTag()
Construct a unique EntityTag. |
String |
getETag()
Get the ETag of this EntityTag. |
boolean |
isWeak()
Is this a weak EntityTag? |
void |
setETag(String value)
Set the ETag of this EntityTag. |
void |
setWeak(boolean value)
Set the strength of this EntityTag. |
String |
toString()
Return a String representation of this EntityTag as defined by the If header in section 9.4 of the WebDAV spec. |
Methods inherited from class org.eclipse.webdav.internal.kernel.ConditionFactor |
---|
not, setNot |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntityTag(String tag)
tag
- the opaque string defining the entity tagMethod Detail |
---|
public static ConditionFactor create(StreamTokenizer tokenizer) throws WebDAVException
tokenizer
- a StreamTokenizer on the contents of a WebDAV If header
WebDAVException
- thrown if there is a syntax error in the If headerpublic boolean equals(Object etag)
equals
in class Object
etag
- the entity tag to compare
public static EntityTag generateEntityTag()
public String getETag()
public boolean isWeak()
public void setETag(String value)
public void setWeak(boolean value)
public String toString()
toString
in class ConditionFactor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |