org.apache.webdav.lib.methods
Class XMLResponseMethodBase.Response

java.lang.Object
  extended byorg.apache.webdav.lib.methods.XMLResponseMethodBase.Response
All Implemented Interfaces:
ResponseEntity
Direct Known Subclasses:
XMLResponseMethodBase.ResponseWithinMultistatus, XMLResponseMethodBase.SingleResponse
Enclosing class:
XMLResponseMethodBase

public abstract class XMLResponseMethodBase.Response
extends java.lang.Object
implements ResponseEntity

An abstract class that models a DAV:response.


Field Summary
protected  org.w3c.dom.Node node
           
static java.lang.String TAG_NAME
           
 
Constructor Summary
(package private) XMLResponseMethodBase.Response(org.w3c.dom.Node node)
           
 
Method Summary
 java.util.Enumeration getHistories()
          Get the properties in the response XML element.
abstract  java.lang.String getHref()
          Get the href string in the response XML element.
 java.util.Enumeration getProperties()
          Get the properties in the response XML element.
abstract  int getStatusCode()
          Get the status code for use with 207 (Multi-Status).
 java.util.Enumeration getWorkspaces()
          Get the properties in the response XML element.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

node

protected org.w3c.dom.Node node

TAG_NAME

public static final java.lang.String TAG_NAME
See Also:
Constant Field Values
Constructor Detail

XMLResponseMethodBase.Response

XMLResponseMethodBase.Response(org.w3c.dom.Node node)
Method Detail

getStatusCode

public abstract int getStatusCode()
Description copied from interface: ResponseEntity
Get the status code for use with 207 (Multi-Status). Unless explicitly prohibited any 2/3/4/5xx series response code may be used in a Multi-Status response.

Specified by:
getStatusCode in interface ResponseEntity
Returns:
the status code.

getHref

public abstract java.lang.String getHref()
Description copied from interface: ResponseEntity
Get the href string in the response XML element. Each response XML element MUST contain an href XML element that gives the URI of the resource on which the properties in the prop XML element are defined.

Specified by:
getHref in interface ResponseEntity
Returns:
the href string.

getHistories

public java.util.Enumeration getHistories()
Description copied from interface: ResponseEntity
Get the properties in the response XML element.

Specified by:
getHistories in interface ResponseEntity
Returns:
the properties.

getWorkspaces

public java.util.Enumeration getWorkspaces()
Description copied from interface: ResponseEntity
Get the properties in the response XML element.

Specified by:
getWorkspaces in interface ResponseEntity
Returns:
the properties.

getProperties

public java.util.Enumeration getProperties()
Description copied from interface: ResponseEntity
Get the properties in the response XML element.

Specified by:
getProperties in interface ResponseEntity
Returns:
the properties.

toString

public java.lang.String toString()