Package org.apache.webdav.lib.properties
Class LockDiscoveryProperty
java.lang.Object
org.apache.webdav.lib.BaseProperty
org.apache.webdav.lib.properties.LockDiscoveryProperty
- All Implemented Interfaces:
Property
This class represents a listing of who has lock, what type of lock he has,
the timeout type and the time remaining on the timeout, and the associated
lock token. The server is free to withhold any or all of this information
if the requesting principal does not have sufficient access rights to see
the requested data.
<!ELEMENT lockdiscovery (activelock)* >
- Version:
- $Revision: 1.4.2.1 $
-
Field Summary
FieldsFields inherited from class org.apache.webdav.lib.BaseProperty
element, response
-
Constructor Summary
ConstructorsConstructorDescriptionLockDiscoveryProperty
(ResponseEntity response, Element element) Default constructor for the property. -
Method Summary
Methods inherited from class org.apache.webdav.lib.BaseProperty
getElement, getLocalName, getName, getNamespaceURI, getOwningURL, getStatusCode, toString
-
Field Details
-
TAG_NAME
The property name.- See Also:
-
-
Constructor Details
-
LockDiscoveryProperty
Default constructor for the property.
-
-
Method Details
-
getActiveLocks
Get the activelock in this lockdiscovery property.- Returns:
- Lock[] A lock array or null when there is no lock.
-
parseLock
Parse a lock. -
getPropertyAsString
Description copied from class:BaseProperty
This method returns the value of the property. Thus, for example, calling this method on a property such as<D:getlastmodified>Tue, 05 Dec 2000 05:25:02</D:getlastmodified>
returnsTue, 05 Dec 2000 05:25:02
.
Note: Mixed content (text and xml together) will not be returned accurately.- Specified by:
getPropertyAsString
in interfaceProperty
- Overrides:
getPropertyAsString
in classBaseProperty
-