| java.lang.Object com.ibm.webdav.ConditionFactor
All known Subclasses: com.ibm.webdav.StateToken, com.ibm.webdav.EntityTag,
ConditionFactor | abstract public class ConditionFactor (Code) | | 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.
author: Jim Amsden <jamsden@us.ibm.com> See Also: com.ibm.webdav.Precondition See Also: com.ibm.webdav.ConditionFactor See Also: com.ibm.webdav.ConditionTerm See Also: com.ibm.webdav.EntityTag See Also: com.ibm.webdav.StateToken |
Method Summary | |
public static ConditionFactor | create(StreamTokenizer tokenizer) Create a ConditionFactor (either a StateToken or EntityTag) by parsing
the tokenizer contining an If header value. | public boolean | not() | public void | setNot(boolean value) Set how to compare to this ConditionFactor. | abstract public String | toString() Return a String representation of this ConditionFactor as defined by the If
header in section 9.4 of the WebDAV spec. |
create | public static ConditionFactor create(StreamTokenizer tokenizer) throws WebDAVException(Code) | | Create a ConditionFactor (either a StateToken or EntityTag) by parsing
the tokenizer contining an If header value.
Parameters: tokenizer - a StreamTokenizer containing the contents of a state token or entity tagfrom a WebDAV If header the parsed ConditionFactor exception: com.ibm.webdav.WebDAVException - thrown if there is a syntax error in the If header |
not | public boolean not()(Code) | | Negate the comparison on this ConditionFactor?
true if the condition factor was negated in the If header |
setNot | public void setNot(boolean value)(Code) | | Set how to compare to this ConditionFactor. Value is true implies match for
a valid request, false implies the request is valid only if the ConditionFactor
doesn't match.
Parameters: value - true means negate the condition |
toString | abstract public String toString()(Code) | | Return a String representation of this ConditionFactor as defined by the If
header in section 9.4 of the WebDAV spec.
a string representation of a state token or entity tag |
|
|