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
-
Method Summary
Modifier and TypeMethodDescriptiongetOwner()
Retrieves information about the principal taking out a lock.long
Retrieves lock expiration timeout in milliseconds.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
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
Sets lock token associated with a lock.
-
Constructor Details
-
LockInfo
public LockInfo()InitializeLockInfo
instance -
LockInfo
InitializeLockInfo
instance- 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.
-