be.re.webdav
Class Client.Lock

java.lang.Object
  extended by be.re.webdav.Client.Lock
Enclosing class:
Client

public static class Client.Lock
extends Object

Represents a lock.

Author:
Werner Donné

Field Summary
 String depth
          The depth of a lock.
 boolean exclusive
          The lock is exclusive when this field is true, otherwise it is shared.
 String owner
          The owner of a lock.
 URL root
          The lock root, which is the URL through which the resource was addressed in the LOCK request.
 int timeoutSeconds
          The number of seconds remaining before a lock expires.
 String token
          The lock token.
 boolean write
          Indicates if this lock is a write lock.
 
Constructor Summary
Client.Lock()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

depth

public String depth
The depth of a lock. This can be "0", "1", or "infinity".


exclusive

public boolean exclusive
The lock is exclusive when this field is true, otherwise it is shared.


owner

public String owner
The owner of a lock. This can be any string.


root

public URL root
The lock root, which is the URL through which the resource was addressed in the LOCK request.


timeoutSeconds

public int timeoutSeconds
The number of seconds remaining before a lock expires. The value -1 indicates infinity.


token

public String token
The lock token.


write

public boolean write
Indicates if this lock is a write lock.

Constructor Detail

Client.Lock

public Client.Lock()