|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LockableResource
webDAV LOCK You should also implement LockingCollectionResource on your collections for full locking support
| Method Summary | |
|---|---|
LockToken |
getCurrentLock()
|
LockResult |
lock(LockTimeout timeout,
LockInfo lockInfo)
Lock this resource and return a token |
LockResult |
refreshLock(java.lang.String token)
Renew the lock and return new lock info |
void |
unlock(java.lang.String tokenId)
If the resource is currently locked, and the tokenId matches the current one, unlock the resource |
| Methods inherited from interface com.bradmcevoy.http.Resource |
|---|
authenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueId |
| Method Detail |
|---|
LockResult lock(LockTimeout timeout,
LockInfo lockInfo)
throws NotAuthorizedException,
PreConditionFailedException,
LockedException
timeout - - in seconds, or nulllockInfo -
NotAuthorizedException
PreConditionFailedException
LockedException
LockResult refreshLock(java.lang.String token)
throws NotAuthorizedException,
PreConditionFailedException
token -
NotAuthorizedException
PreConditionFailedException
void unlock(java.lang.String tokenId)
throws NotAuthorizedException,
PreConditionFailedException
tokenId -
NotAuthorizedException
PreConditionFailedExceptionLockToken getCurrentLock()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||