|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.webdav.internal.kernel.ConditionFactor
public abstract class ConditionFactor
A ConditionFactor represents some state of a resource that must be satisfied in order for the associated request to be valid. The ConditionFactors in a ConditionTerm must all match with states of the resource, i.e., they are AND'ed together. Conditions are contained in a Precondition which is used in a WebDAV If header. ConditionFactors are either constructed by the client, or may have been given to the client in a previous method request. A ConditionFactor can be either a StateToken or an EntityTag as defined by section 9.4 of the WebDAV spec.
Constructor Summary | |
---|---|
ConditionFactor()
|
Method Summary | |
---|---|
static ConditionFactor |
create(StreamTokenizer tokenizer)
Create a ConditionFactor (either a StateToken or EntityTag) by parsing the tokenizer contining an If header value. |
boolean |
not()
Negate the comparison on this ConditionFactor? |
void |
setNot(boolean value)
Set how to compare to this ConditionFactor. |
abstract String |
toString()
Return a String representation of this ConditionFactor as defined by the If header in section 9.4 of the WebDAV spec. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConditionFactor()
Method Detail |
---|
public static ConditionFactor create(StreamTokenizer tokenizer) throws WebDAVException
tokenizer
- a StreamTokenizer containing the contents of a state token or entity tag
from a WebDAV If header
WebDAVException
- thrown if there is a syntax error in the If headerpublic boolean not()
public void setNot(boolean value)
value
- true means negate the conditionpublic abstract String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |