| |
|
| java.lang.Object com.ibm.webdav.Condition
Constructor Summary | |
public | Condition() Construct a Condition on the default resource. | public | Condition(String uri) Construct a Condition with the given URI. |
Condition | public Condition()(Code) | | Construct a Condition on the default resource.
|
Condition | public Condition(String uri)(Code) | | Construct a Condition with the given URI.
Parameters: uri - the URI of the resource associated with this condition |
contains | public boolean contains(ConditionTerm term)(Code) | | Does this Condition contain the given ConditionTerm?
Parameters: term - the term to check for true if the condition contains the given term, false otherwise |
create | public static Condition create(StreamTokenizer tokenizer) throws WebDAVException(Code) | | Create a Condition by parsing the given If header as defined by
section 9.4 in the WebDAV spec.
Parameters: tokenizer - a StreamTokenizer on the contents of a WebDAV If header the parsed condition |
create | public static Condition create(String ifHeader) throws WebDAVException(Code) | | Create a Condition by parsing the given If header as defined by
section 9.4 in the WebDAV spec.
Parameters: ifHeader - the contents of a WebDAV If header the parsed condition exception: com.ibm.webdav.WebDAVException - thrown if there is a syntax error in the header |
getConditionTerms | public Enumeration getConditionTerms()(Code) | | Get all the ConditionTerms for this Condition. At least one of the ConditionTerms in
a Condition must match with states of the resource, i.e., they are OR'd
together. Conditions are contained in a Precondition which is used in a
WebDAV If header.
|
getResourceURI | public String getResourceURI()(Code) | | Get the URI of the associated Resource. The condition must match on this
resource. This is useful for Preconditions that span multiple resources.
the resource URI whose state is described by this Condition, may be nullindicating the condition applies to the resource receiving the request |
matches | public boolean matches(Condition condition)(Code) | | See if this Condition matches the given Condition. This is an
OR operation.
Parameters: condition - the condition to match against true if the conditions match, false otherwise. |
setResourceURI | public void setResourceURI(String value)(Code) | | Set the URI of the associated Resource. The condition must match on this
resource. This is useful for Preconditions that span multiple resources.
Parameters: value - the resource URI whose state is described by this Condition.value can be null if the condition applies to the resource executing the method. |
toString | public String toString()(Code) | | Return a String representation of this Condition as defined by section 9.4
of the WebDAV Spec.
a String representation of this condition |
|
|
|