|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.webdav.lib.Lock
public class Lock
This class represents a lock on a resource.
Field Summary | |
---|---|
protected int |
depth
|
protected int |
lockScope
|
protected java.lang.String |
lockToken
|
protected int |
lockType
|
protected java.lang.String |
owner
|
protected java.lang.String |
principalUrl
|
static int |
SCOPE_EXCLUSIVE
The exclusive constant in the lockscope. |
static int |
SCOPE_SHARED
The shared constant in the lockscope. |
static java.lang.String |
TAG_NAME
The property name. |
protected int |
timeout
|
static int |
TYPE_TRANSACTION
Type indicating lock is a transaction lock. |
static int |
TYPE_WRITE
The write constant in the locktype. |
Constructor Summary | |
---|---|
Lock(int lockScope,
int lockType)
Default constructor for the lockentry. |
|
Lock(int lockScope,
int lockType,
int depth,
java.lang.String owner,
int timeout,
java.lang.String lockToken)
Default constructor for the activelock. |
|
Lock(int lockScope,
int lockType,
int depth,
java.lang.String owner,
int timeout,
java.lang.String lockToken,
java.lang.String principalUrl)
|
|
Lock(int lockScope,
int lockType,
int depth,
java.lang.String owner,
long timeout,
java.lang.String lockToken)
Deprecated. The timeout value MUST NOT be greater than 2^32-1. |
Method Summary | |
---|---|
int |
getDepth()
Get the value of the depth. |
int |
getLockScope()
Get whether a lock is an exclusive lock, or a shared lock. |
java.lang.String |
getLockToken()
Get the access type of a lock. |
int |
getLockType()
Get the access type of a lock. |
java.lang.String |
getOwner()
Get information about the principal taking out a lock. |
java.lang.String |
getPrincipalUrl()
Get the principal-URL property of the lock, if one. |
int |
getTimeout()
Get the timeout associated with a lock. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TAG_NAME
public static final int TYPE_WRITE
public static final int TYPE_TRANSACTION
public static final int SCOPE_EXCLUSIVE
public static final int SCOPE_SHARED
protected int lockScope
protected int lockType
protected int depth
protected java.lang.String owner
protected int timeout
protected java.lang.String lockToken
protected java.lang.String principalUrl
Constructor Detail |
---|
public Lock(int lockScope, int lockType)
public Lock(int lockScope, int lockType, int depth, java.lang.String owner, int timeout, java.lang.String lockToken)
public Lock(int lockScope, int lockType, int depth, java.lang.String owner, int timeout, java.lang.String lockToken, java.lang.String principalUrl)
public Lock(int lockScope, int lockType, int depth, java.lang.String owner, long timeout, java.lang.String lockToken)
Method Detail |
---|
public int getLockScope()
public int getLockType()
public int getDepth()
public java.lang.String getOwner()
public java.lang.String getPrincipalUrl()
principal-URL
property of the lock, if one.
public int getTimeout()
public java.lang.String getLockToken()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |