com.ithit.webdav.server
Class LockInfo

java.lang.Object
  extended by com.ithit.webdav.server.LockInfo

public final class LockInfo
extends java.lang.Object

Serves for exchanging locking information with WebDAV engine.


Constructor Summary
LockInfo()
           
 
Method Summary
 java.lang.String getOwner()
          Retrieves information about the principal taking out a lock.
 long getTimeout()
          Retrieves lock expiration timeout in milliseconds.
 java.lang.String getToken()
          Retrieves lock token associated with a lock.
 boolean isDeep()
          Indicates whether a lock is enforceable on the subtree.
 boolean isShared()
          Determines whether lock is shared.
 void setDeep(boolean deep)
          Sets flag which indicates whether the lock is enforceable on the subtree.
 void setOwner(java.lang.String owner)
          Sets information about the principal taking out a lock.
 void setShared(boolean shared)
          Sets shared flag of the lock.
 void setTimeout(long timeout)
          Sets lock expirate timeout.
 void setToken(java.lang.String token)
          Sets lock token associated with a lock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockInfo

public LockInfo()
Method Detail

getToken

public java.lang.String getToken()
Retrieves lock token associated with a lock.

Returns:
lock token.

setToken

public void setToken(java.lang.String token)
Sets lock token associated with a lock.

Parameters:
token - lock token.

isShared

public boolean isShared()
Determines whether lock is shared.

Returns:
whether lock is shared.

setShared

public void setShared(boolean shared)
Sets shared flag of the lock.

Parameters:
shared - whether the lock is shared.

isDeep

public boolean isDeep()
Indicates whether a lock is enforceable on the subtree.

Returns:
whether a lock is enforceable on the subtree.

setDeep

public void setDeep(boolean deep)
Sets flag which indicates whether the lock is enforceable on the subtree.

Parameters:
deep - whether a lock is enforceable on the subtree.

getTimeout

public long getTimeout()
Retrieves lock expiration timeout in milliseconds.

Returns:
lock expiration timeout. Negative value means never.

setTimeout

public void setTimeout(long timeout)
Sets lock expirate timeout.

Parameters:
timeout - timeout value in milliseconds. -1 means never.

getOwner

public java.lang.String getOwner()
Retrieves information about the principal taking out a lock.

Returns:
principal.

setOwner

public void setOwner(java.lang.String owner)
Sets information about the principal taking out a lock.

Parameters:
owner - principal.


Copyright © 2009 ITHit. All Rights Reserved.