A PropertyResponse describes the properties returned as the
result of a method send on a resource, e.g., getProperties(). A
MultiStatus contains a collection of Response instances,
one for each resource effected by the method sent.
PropertyResponse also has convenience methods for all the DAV properties.
The method names correspond to the DAV property names suitably
modified to fit JavaBean conventions. If the property was not requested,
these convenience methods will return null or some other suitable value
to indicate the property value is unknown.
addProperty(PropertyName propertyName, Element propertyElement, int status) Add a property and its status to the collection of properties generated
as a result of sending a method to a resource.
getActiveLocks() Get the active locks in the property response if any.
a Vector of ActiveLock objects containing information about lockson the resource.
Construct a Response from an XML DAV:response element
Parameters: document - the document that will contain the Responsewhen output as XML. Parameters: response - the XML DAV:response element that is the source exception: com.ibm.webdav.ServerException - thrown if the XML for the response is incorrectof this response
Add a property and its status to the collection of properties generated
as a result of sending a method to a resource.
Parameters: propertyName - the name of the property to add. Parameters: propertyElement - the value of the property Parameters: status - its status exception: com.ibm.webdav.ServerException - thrown if the property is already in this response
Get the active locks in the property response if any.
a Vector of ActiveLock objects containing information about lockson the resource. The Vector will be empty if the lockdiscovery propertywas not requested. exception: com.ibm.webdav.WebDAVException -
The author of this resource. That is, the principal id of the user agent that
initially created the resource.
the DAV:author property or null if the property was not requested.
The date the resource revision was checked in.
the DAV:checkin-date property or null if the property was not requestedor the resource is not versioned or checked in.
The length of the content of the resource or -1 if content length is not applicable.
the DAV:getcontentlength property or -1 if the property was not requested.
Get the value of a property contained in a PropertyResponse. The
values were set when a method was invoked that returned a MultiStatus
containing one or more PropertyResponses.
Parameters: name - the name of the property to get, the property value for the named property
Get the names of the properties contained in a PropertyResponse. The
values were set when a method was invoked that returned a MultiStatus
containing one or more PropertyResponses. The values here are instances
of the class PropertyName... not String.
Get the resource type for the resource associated with this PropertyResponse.
This is the tagName of the first child of the DAV:resourcetype property.
The DAV:resourcetype DAV property or null if the property was not requested.
See if this property response is on a collection. That is, see
if it contains a resourcetype property having a collection element.
true if this PropertyResponse is on a collection resource
Remove a property from the collection of properties generated
as a result of sending a method to a resource.
Parameters: propertyName - the property to remove. exception: com.ibm.webdav.ServerException -
Convert this Response to a PropertyResponse.
This method is used to convert MethodResponses to PropertyResponses
when an error occurred accessing the properties of some member.