|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsmbdav.LockInfo
Represents information associated with a lock.
Constructor Summary | |
LockInfo()
|
Method Summary | |
int |
getDepth()
Retrieves the lock depth. |
org.w3c.dom.DocumentFragment |
getOwner()
Returns the lock owner information. |
long |
getTimeout()
Returns the lock timeout value in milliseconds. |
boolean |
isExclusive()
Indicates whether the lock is exclusive. |
void |
setDepth(int depth)
Sets the lock depth. |
void |
setExclusive(boolean exclusive)
Sets the lock to be exclusive or shared. |
void |
setOwner(org.w3c.dom.DocumentFragment owner)
Sets the lock owner information. |
void |
setTimeout(long timeout)
Sets the lock timeout value in milliseconds. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LockInfo()
Method Detail |
public boolean isExclusive()
boolean
indicating whether this is an
exclusive (true
) or shared (false
) lock.public void setExclusive(boolean exclusive)
exclusive
- Indicates whether the lock should be exclusive
(true
) or shared (false
).public org.w3c.dom.DocumentFragment getOwner()
DocumentFragment
containing the XML fragment
representing the lock owner information.public void setOwner(org.w3c.dom.DocumentFragment owner)
owner
- The XML fragment representing the lock owner information.public int getDepth()
int
indicating the lock depth. Should be
either SmbDAVUtilities.RESOURCE_ONLY_DEPTH
or
SmbDAVUtilities.INFINITE_DEPTH
.public void setDepth(int depth)
depth
- The lock depth. One of
SmbDAVUtilities.RESOURCE_ONLY_DEPTH
or
SmbDAVUtilities.INFINITE_DEPTH
.public long getTimeout()
long containing the lock timeout value.
If no timeout has been specified, this will be
SmbDAVUtilities.UNSPECIFIED_TIMEOUT
. If an infinite
timeout has been specified, this will be
SmbDAVUtilities.INFINITE_TIMEOUT
.
public void setTimeout(long timeout)
timeout
- The timeout value. This should be a value in
milliseconds, or one of
SmbDAVUtilities.UNSPECIFIED_TIMEOUT
(if no timeout
is specified) or
SmbDAVUtilities.INFINITE_TIMEOUT
(if an infinite
timeout is specified).public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |