Package io.milton.resource
Interface LockingCollectionResource
- All Superinterfaces:
CollectionResource,LockableResource,Resource
A collection which allows locking "unmapped resources". This means that a LOCK
method can effectively create an empty resource which is immediately locked.
Implement this in conjunction with on child resources to fully
support locking.
Note that this interface now extends because collection resources
need to implement both in most cases.
If, however, you don't want your collection resources to be lockable, just
implement .
See http://www.ettrema.com:8080/browse/MIL-14.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAndLock(String name, LockTimeout timeout, LockInfo lockInfo) Create an empty non-collection resource of the given name and immediately lock it.Methods inherited from interface io.milton.resource.CollectionResource
child, getChildrenMethods inherited from interface io.milton.resource.LockableResource
getCurrentLock, lock, refreshLock, unlockMethods inherited from interface io.milton.resource.Resource
authenticate, authorise, checkRedirect, getModifiedDate, getName, getRealm, getUniqueId
-
Method Details
-
createAndLock
LockToken createAndLock(String name, LockTimeout timeout, LockInfo lockInfo) throws io.milton.http.exceptions.NotAuthorizedException Create an empty non-collection resource of the given name and immediately lock it. It is suggested that the implementor have a specific Resource class to act as the lock null resource. You should consider using the interface.- Parameters:
name- - the name of the resource to createtimeout- - in secondslockInfo-- Returns:
- Throws:
io.milton.http.exceptions.NotAuthorizedException- See Also:
-