org.eclipse.webdav.client
Class PropertyStatus

java.lang.Object
  extended by org.eclipse.webdav.client.PropertyStatus

public class PropertyStatus
extends Object

A PropertyStatus holds the WebDAV server's response from a client's request to retrieve a particular property.

Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Constructor Summary
PropertyStatus(Element property, int statusCode, String statusMessage)
          Create a new property status from the given property and the specified status.
 
Method Summary
 Element getProperty()
          Return the requested property as an Element.
 QualifiedName getPropertyName()
          Return the requested property's name.
 int getStatusCode()
          Return the status code that resulted from retrieving (or attempting to retrieve) this property status' property.
 String getStatusMessage()
          Return the status message that resulted from retrieving (or attempting to retrieve) this property status' property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyStatus

public PropertyStatus(Element property,
                      int statusCode,
                      String statusMessage)
Create a new property status from the given property and the specified status.

Parameters:
property - the requested property
statusCode - the resulting status code
statusMessage - the resulting status message
Method Detail

getProperty

public Element getProperty()
Return the requested property as an Element. The element will not have any children if the property could not be retrieved as indicated by the status.


getPropertyName

public QualifiedName getPropertyName()
                              throws MalformedElementException
Return the requested property's name.

Throws:
MalformedElementException

getStatusCode

public int getStatusCode()
Return the status code that resulted from retrieving (or attempting to retrieve) this property status' property.


getStatusMessage

public String getStatusMessage()
Return the status message that resulted from retrieving (or attempting to retrieve) this property status' property.



Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.