Class WebDAVMethod.Condition

  • Enclosing class:
    WebDAVMethod

    protected class WebDAVMethod.Condition
    extends java.lang.Object
    Class used for storing conditions which comes with "If" header of the request
    Author:
    ivanry
    • Constructor Summary

      Constructors 
      Constructor Description
      Condition()
      Default constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addETag​(java.lang.String eTag, boolean notMatch)
      Add ETag to check
      void addLockTocken​(java.lang.String lockToken, boolean notMatch)
      Adds lock token to check
      java.util.LinkedList<java.lang.String> getETagsMatch()
      Returns the list of ETags that should be checked against node's ETag on equivalence.
      java.util.LinkedList<java.lang.String> getETagsNotMatch()
      Returns the list of ETags that should be checked against node's ETag on non-equivalence.
      java.util.LinkedList<java.lang.String> getLockTokensMatch()
      Returns the list of lock tokens that should be checked against node's lock token on equivalence.
      java.util.LinkedList<java.lang.String> getLockTokensNotMatch()
      Returns the list of lock tokens that should be checked against node's lock token on non-equivalence.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Condition

        public Condition()
        Default constructor
    • Method Detail

      • getLockTokensMatch

        public java.util.LinkedList<java.lang.String> getLockTokensMatch()
        Returns the list of lock tokens that should be checked against node's lock token on equivalence.
        Returns:
        lock tokens
      • getLockTokensNotMatch

        public java.util.LinkedList<java.lang.String> getLockTokensNotMatch()
        Returns the list of lock tokens that should be checked against node's lock token on non-equivalence.
        Returns:
        lock tokens
      • getETagsMatch

        public java.util.LinkedList<java.lang.String> getETagsMatch()
        Returns the list of ETags that should be checked against node's ETag on equivalence.
        Returns:
        ETags list
      • getETagsNotMatch

        public java.util.LinkedList<java.lang.String> getETagsNotMatch()
        Returns the list of ETags that should be checked against node's ETag on non-equivalence.
        Returns:
        ETags list
      • addLockTocken

        public void addLockTocken​(java.lang.String lockToken,
                                  boolean notMatch)
        Adds lock token to check
        Parameters:
        lockToken - String
        notMatch - true is lock token should be added to the list matched tokens. false if should be added to the list of non-matches.
      • addETag

        public void addETag​(java.lang.String eTag,
                            boolean notMatch)
        Add ETag to check
        Parameters:
        eTag - String
        notMatch - true is ETag should be added to the list matched ETags. false if should be added to the list of non-matches.