smbdav
Class Lock

java.lang.Object
  extended bysmbdav.LockInfo
      extended bysmbdav.Lock
Direct Known Subclasses:
DefaultLockManager.BasicLock

public abstract class Lock
extends LockInfo

Represents an active lock.

Author:
Eric Glass

Constructor Summary
Lock()
           
 
Method Summary
abstract  java.security.Principal getPrincipal()
          Returns the principal owning this lock.
abstract  java.lang.String getToken()
          Returns the token associated with this lock.
 java.lang.String toString()
           
 
Methods inherited from class smbdav.LockInfo
getDepth, getOwner, getTimeout, isExclusive, setDepth, setExclusive, setOwner, setTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Lock

public Lock()
Method Detail

getToken

public abstract java.lang.String getToken()
Returns the token associated with this lock.

Returns:
A String containing the associated lock token URI (typically an "opaquelocktoken" URI).

getPrincipal

public abstract java.security.Principal getPrincipal()
Returns the principal owning this lock.

Returns:
A Principal representing the lock owner.

toString

public java.lang.String toString()
Overrides:
toString in class LockInfo


Copyright © 2004 Eric Glass