org.apache.webdav.lib.properties

Class SupportedLockProperty

Implemented Interfaces:
Property

public class SupportedLockProperty
extends BaseProperty

Version:
$Revision: 1.4 $

Field Summary

static String
TAG_NAME
The property name.

Fields inherited from class org.apache.webdav.lib.BaseProperty

element, response

Constructor Summary

SupportedLockProperty(ResponseEntity response, Element element)
Default constructor for the property.

Method Summary

Lock[]
getLockEntries()
Get the lockentry in this supportedlock property.
String
getPropertyAsString()
This method returns the value of the property.
protected Lock
parseLock(Element element)
Parse a lock.

Methods inherited from class org.apache.webdav.lib.BaseProperty

getElement, getLocalName, getName, getNamespaceURI, getOwningURL, getPropertyAsString, getStatusCode, toString

Field Details

TAG_NAME

public static final String TAG_NAME
The property name.

Constructor Details

SupportedLockProperty

public SupportedLockProperty(ResponseEntity response,
                             Element element)
Default constructor for the property.

Method Details

getLockEntries

public Lock[] getLockEntries()
Get the lockentry in this supportedlock property.
Returns:
Lock[] A lock array or null when there is no lock.

getPropertyAsString

public String getPropertyAsString()
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> returns Tue, 05 Dec 2000 05:25:02.
Note: Mixed content (text and xml together) will not be returned accurately.
Specified by:
getPropertyAsString in interface Property
Overrides:
getPropertyAsString in interface BaseProperty

parseLock

protected Lock parseLock(Element element)
Parse a lock.