Package org.apache.webdav.lib.methods
Class XMLResponseMethodBase.Response
- java.lang.Object
-
- org.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.
-
-
Constructor Summary
Constructors Constructor Description Response(org.w3c.dom.Node node)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.EnumerationgetHistories()Get the properties in the response XML element.abstract java.lang.StringgetHref()Get the href string in the response XML element.java.util.EnumerationgetProperties()Get the properties in the response XML element.abstract intgetStatusCode()Get the status code for use with 207 (Multi-Status).java.util.EnumerationgetWorkspaces()Get the properties in the response XML element.java.lang.StringtoString()
-
-
-
Field Detail
-
node
protected org.w3c.dom.Node node
-
TAG_NAME
public static final java.lang.String TAG_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStatusCode
public abstract int getStatusCode()
Description copied from interface:ResponseEntityGet 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:
getStatusCodein interfaceResponseEntity- Returns:
- the status code.
-
getHref
public abstract java.lang.String getHref()
Description copied from interface:ResponseEntityGet 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:
getHrefin interfaceResponseEntity- Returns:
- the href string.
-
getHistories
public java.util.Enumeration getHistories()
Description copied from interface:ResponseEntityGet the properties in the response XML element.- Specified by:
getHistoriesin interfaceResponseEntity- Returns:
- the properties.
-
getWorkspaces
public java.util.Enumeration getWorkspaces()
Description copied from interface:ResponseEntityGet the properties in the response XML element.- Specified by:
getWorkspacesin interfaceResponseEntity- Returns:
- the properties.
-
getProperties
public java.util.Enumeration getProperties()
Description copied from interface:ResponseEntityGet the properties in the response XML element.- Specified by:
getPropertiesin interfaceResponseEntity- Returns:
- the properties.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-