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

java.lang.Object
  |
  +--org.apache.webdav.lib.methods.XMLResponseMethodBase.Response
        |
        +--org.apache.webdav.lib.methods.XMLResponseMethodBase.SingleResponse
All Implemented Interfaces:
ResponseEntity
Enclosing class:
XMLResponseMethodBase

class XMLResponseMethodBase.SingleResponse
extends XMLResponseMethodBase.Response


Fields inherited from class org.apache.webdav.lib.methods.XMLResponseMethodBase.Response
node, TAG_NAME
 
Constructor Summary
(package private) XMLResponseMethodBase.SingleResponse(org.w3c.dom.Document document, java.lang.String href, int statusCode)
           
 
Method Summary
 java.lang.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
getProperties, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLResponseMethodBase.SingleResponse

XMLResponseMethodBase.SingleResponse(org.w3c.dom.Document document,
                                     java.lang.String href,
                                     int statusCode)
Method Detail

getStatusCode

public 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.
Overrides:
getStatusCode in class XMLResponseMethodBase.Response
Following copied from interface: org.apache.webdav.lib.ResponseEntity
Returns:
the status code.

getHref

public 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.
Overrides:
getHref in class XMLResponseMethodBase.Response
Following copied from interface: org.apache.webdav.lib.ResponseEntity
Returns:
the href string.