Package com.ithit.webdav.server
Class LockInfo
java.lang.Object
com.ithit.webdav.server.LockInfo
Serves for exchanging locking information with WebDAV engine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOwner()Retrieves information about the principal taking out a lock.longRetrieves lock expiration timeout in milliseconds.getToken()Retrieves lock token associated with a lock.booleanisDeep()Indicates whether a lock is enforceable on the subtree.booleanisShared()Determines whether lock is shared.voidsetDeep(boolean deep) Sets flag which indicates whether the lock is enforceable on the subtree.voidSets information about the principal taking out a lock.voidsetShared(boolean shared) Sets shared flag of the lock.voidsetTimeout(long timeout) Sets lock expirate timeout.voidSets lock token associated with a lock.
-
Constructor Details
-
LockInfo
public LockInfo()InitializeLockInfoinstance -
LockInfo
InitializeLockInfoinstance- Parameters:
shared- Sets shared flag of the lock.deep- Sets flag which indicates whether the lock is enforceable on the subtree.token- Sets lock token associated with a lock.timeout- Sets lock expiration timeout.owner- Sets information about the principal taking out a lock.
-
-
Method Details
-
getToken
Retrieves lock token associated with a lock.- Returns:
- Lock token.
-
setToken
Sets lock token associated with a lock.- Parameters:
token- Lock token.
-
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
Retrieves information about the principal taking out a lock.- Returns:
- Principal.
-
setOwner
Sets information about the principal taking out a lock.- Parameters:
owner- Principal.
-