org.apache.webdav.lib.methods

Class XMLResponseMethodBase.ResponseWithinMultistatus

Enclosing Class:
XMLResponseMethodBase
Implemented Interfaces:
ResponseEntity

(package private) class XMLResponseMethodBase.ResponseWithinMultistatus
extends XMLResponseMethodBase.Response

A class that models the DAV:response element within a multistatus.

Field Summary

Fields inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase.Response

TAG_NAME, node

Constructor Summary

ResponseWithinMultistatus(Element element)

Method Summary

protected Element
getFirstElement(String namespace, String name)
String
getHref()
Get the href string in the response XML element.
int
getStatusCode()
Get the status code for use with 207 (Multi-Status).

Methods inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase.Response

getHistories, getHref, getProperties, getStatusCode, getWorkspaces, toString

Constructor Details

ResponseWithinMultistatus

public ResponseWithinMultistatus(Element element)

Method Details

getFirstElement

protected Element getFirstElement(String namespace,
                                  String name)

getHref

public 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
Overrides:
getHref in interface XMLResponseMethodBase.Response
Returns:
the href string.

getStatusCode

public 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
Overrides:
getStatusCode in interface XMLResponseMethodBase.Response
Returns:
the status code.