org.apache.webdav.lib
Class WebdavState

java.lang.Object
  extended byorg.apache.commons.httpclient.HttpState
      extended byorg.apache.webdav.lib.WebdavState

public class WebdavState
extends HttpState

Session state.


Field Summary
protected  java.util.HashMap locks
          Lock tokens.
protected  java.util.ArrayList lockTokens
          Lock list.
protected  java.lang.String transactionHandle
          Transaction handle of current session of null if not inside of transaction.
 
Fields inherited from class org.apache.commons.httpclient.HttpState
DEFAULT_AUTH_REALM, PREEMPTIVE_DEFAULT, PREEMPTIVE_PROPERTY
 
Constructor Summary
WebdavState()
           
 
Method Summary
 void addLock(java.lang.String uri, java.lang.String value)
          Add a lock token.
 java.lang.String[] getAllLocks(java.lang.String uri)
          Get all locks scoped to that uri.
 java.lang.String getLock(java.lang.String uri)
          Get lock
 java.util.Enumeration getLocks(java.lang.String uri)
          Deprecated.  
 java.lang.String getTransactionHandle()
           
 void removeLock(java.lang.String uri, java.lang.String value)
          Remove a lock.
 void removeLocks(java.lang.String uri)
          Remove locks.
 void setTransactionHandle(java.lang.String transactionHandle)
           
 
Methods inherited from class org.apache.commons.httpclient.HttpState
addCookie, addCookies, getCookiePolicy, getCookies, getCookies, getCookies, getCredentials, getCredentials, getHttpConnectionManager, getProxyCredentials, getProxyCredentials, isAuthenticationPreemptive, purgeExpiredCookies, purgeExpiredCookies, setAuthenticationPreemptive, setCookiePolicy, setCredentials, setCredentials, setHttpConnectionManager, setProxyCredentials, setProxyCredentials, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

locks

protected java.util.HashMap locks
Lock tokens.


lockTokens

protected java.util.ArrayList lockTokens
Lock list.


transactionHandle

protected java.lang.String transactionHandle
Transaction handle of current session of null if not inside of transaction.

Constructor Detail

WebdavState

public WebdavState()
Method Detail

addLock

public void addLock(java.lang.String uri,
                    java.lang.String value)
Add a lock token.

Parameters:
uri - Uri
value - Lock token value

removeLock

public void removeLock(java.lang.String uri,
                       java.lang.String value)
Remove a lock.

Parameters:
uri - Uri
value - LockToken value

removeLocks

public void removeLocks(java.lang.String uri)
Remove locks.

Parameters:
uri - Uri

getLock

public java.lang.String getLock(java.lang.String uri)
Get lock

Parameters:
uri - Uri

getLocks

public java.util.Enumeration getLocks(java.lang.String uri)
Deprecated.  

Get locks

Parameters:
uri - Uri
Returns:
Enumeration of lock tokens

getAllLocks

public java.lang.String[] getAllLocks(java.lang.String uri)
Get all locks scoped to that uri.

Parameters:
uri - Uri
Returns:
Iterator of lock tokens

getTransactionHandle

public java.lang.String getTransactionHandle()

setTransactionHandle

public void setTransactionHandle(java.lang.String transactionHandle)