org.apache.webdav.lib.methods

Class XMLResponseMethodBase.Response

Enclosing Class:
XMLResponseMethodBase
Implemented Interfaces:
ResponseEntity
Known Direct Subclasses:
XMLResponseMethodBase.ResponseWithinMultistatus, XMLResponseMethodBase.SingleResponse

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

An abstract class that models a DAV:response.

Field Summary

static String
TAG_NAME
protected Node
node

Constructor Summary

Response(Node node)

Method Summary

Enumeration
getHistories()
Get the properties in the response XML element.
abstract String
getHref()
Get the href string in the response XML element.
Enumeration
getProperties()
Get the properties in the response XML element.
abstract int
getStatusCode()
Get the status code for use with 207 (Multi-Status).
Enumeration
getWorkspaces()
Get the properties in the response XML element.
String
toString()

Field Details

TAG_NAME

public static final String TAG_NAME

node

protected Node node

Constructor Details

Response

(package private)  Response(Node node)

Method Details

getHistories

public Enumeration getHistories()
Get the properties in the response XML element.
Specified by:
getHistories in interface ResponseEntity
Returns:
the properties.

getHref

public abstract String getHref()
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.

getProperties

public Enumeration getProperties()
Get the properties in the response XML element.
Specified by:
getProperties in interface ResponseEntity
Returns:
the properties.

getStatusCode

public abstract int getStatusCode()
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.

getWorkspaces

public Enumeration getWorkspaces()
Get the properties in the response XML element.
Specified by:
getWorkspaces in interface ResponseEntity
Returns:
the properties.

toString

public String toString()