public void addStateTokenCondition ( String resourceURI , String stateToken ) throws WebDAVException { Condition condition = new Condition ( resourceURI ) ; ConditionTerm term = new ConditionTerm ( ) ; term . addConditionFactor ( new StateToken ( stateToken ) ) ; condition . addConditionTerm ( term ) ; addCondition ( condition ) ; }
Add a condition created from the given URI and state token . This is a convenience method used primarily to create preconditions for lock tokens that must be provided in the resource context for methods that update the resource .