Class nl.sara.webdav.Response
a WebDAV response
Defined in: response.js.
Constructor Attributes | Constructor Name and Description |
---|---|
nl.sara.webdav.Response(xmlNode)
|
Field Attributes | Field Name and Description |
---|---|
The error text
|
|
The path of the resource
|
|
In case of a 3XX response, the value that would normally be in the 'Location' header
|
|
The response description
|
|
The (HTTP) status code
|
Method Attributes | Method Name and Description |
---|---|
addProperty(property)
Adds a WebDAV property
|
|
Gets the namespace names
|
|
getProperty(namespace, prop)
Gets a WebDAV property
|
|
getPropertyNames(namespace)
Gets the property names of a namespace
|
Class Detail
nl.sara.webdav.Response(xmlNode)
- Parameters:
- {Node} xmlNode Optional
- Optional; the xmlNode describing the response object (should be compliant with RFC 4918)
Field Detail
{String}
error
The error text
{String}
href
The path of the resource
{String}
location
In case of a 3XX response, the value that would normally be in the 'Location' header
{String}
responsedescription
The response description
{String}
status
The (HTTP) status code
Method Detail
{nl.sara.webdav.Response}
addProperty(property)
Adds a WebDAV property
- Parameters:
- {nl.sara.webdav.Property} property
- The property
- Returns:
- {nl.sara.webdav.Response} The response itself for chaining methods
{String[]}
getNamespaceNames()
Gets the namespace names
- Returns:
- {String[]} The names of the different namespaces
{nl.sara.webdav.Property}
getProperty(namespace, prop)
Gets a WebDAV property
- Parameters:
- {String} namespace
- The namespace of the WebDAV property
- {String} prop
- The WebDAV property to get
- Returns:
- {nl.sara.webdav.Property} The value of the WebDAV property or undefined if the WebDAV property doesn't exist
{String[]}
getPropertyNames(namespace)
Gets the property names of a namespace
- Parameters:
- {String} namespace
- The namespace of the WebDAV property
- Returns:
- {String[]} The names of the different properties of a namespace