Class WebdavState

java.lang.Object
org.apache.commons.httpclient.HttpState
org.apache.webdav.lib.WebdavState

public class WebdavState extends org.apache.commons.httpclient.HttpState
Session state.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected HashMap
    Lock tokens.
    protected ArrayList
    Lock list.
    protected String
    Transaction handle of current session of null if not inside of transaction.

    Fields inherited from class org.apache.commons.httpclient.HttpState

    cookies, credMap, PREEMPTIVE_DEFAULT, PREEMPTIVE_PROPERTY, proxyCred
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addLock(String uri, String value)
    Add a lock token.
    Get all locks scoped to that uri.
    Get lock
    Deprecated. 
     
    void
    removeLock(String uri, String value)
    Remove a lock.
    void
    Remove locks.
    void
    setTransactionHandle(String transactionHandle)
     

    Methods inherited from class org.apache.commons.httpclient.HttpState

    addCookie, addCookies, clear, clearCookies, clearCredentials, clearProxyCredentials, getCookiePolicy, getCookies, getCookies, getCredentials, getCredentials, getProxyCredentials, getProxyCredentials, isAuthenticationPreemptive, purgeExpiredCookies, purgeExpiredCookies, setAuthenticationPreemptive, setCookiePolicy, setCredentials, setCredentials, setProxyCredentials, setProxyCredentials, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • locks

      protected HashMap locks
      Lock tokens.
    • lockTokens

      protected ArrayList lockTokens
      Lock list.
    • transactionHandle

      protected String transactionHandle
      Transaction handle of current session of null if not inside of transaction.
  • Constructor Details

    • WebdavState

      public WebdavState()
  • Method Details

    • addLock

      public void addLock(String uri, String value)
      Add a lock token.
      Parameters:
      uri - Uri
      value - Lock token value
    • removeLock

      public void removeLock(String uri, String value)
      Remove a lock.
      Parameters:
      uri - Uri
      value - LockToken value
    • removeLocks

      public void removeLocks(String uri)
      Remove locks.
      Parameters:
      uri - Uri
    • getLock

      public String getLock(String uri)
      Get lock
      Parameters:
      uri - Uri
    • getLocks

      public Enumeration getLocks(String uri)
      Deprecated.
      Get locks
      Parameters:
      uri - Uri
      Returns:
      Enumeration of lock tokens
    • getAllLocks

      public String[] getAllLocks(String uri)
      Get all locks scoped to that uri.
      Parameters:
      uri - Uri
      Returns:
      Iterator of lock tokens
    • getTransactionHandle

      public String getTransactionHandle()
    • setTransactionHandle

      public void setTransactionHandle(String transactionHandle)