|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.webdav.MultiStatus
MultiStatus representing the content of a multistatus response body and allows to retrieve the Xml representation.
Field Summary |
Constructor Summary | |
MultiStatus()
|
Method Summary | |
void |
addResourceProperties(DavResource resource,
DavPropertyNameSet propNameSet,
int depth)
Add response(s) to this multistatus, in order to build a multistatus e.g. |
void |
addResourceProperties(DavResource resource,
DavPropertyNameSet propNameSet,
int propFindType,
int depth)
Add response(s) to this multistatus, in order to build a multistatus for responding to a PROPFIND request. |
void |
addResourceStatus(DavResource resource,
int status,
int depth)
Add response(s) to this multistatus, in order to build a multistatus as returned for COPY, MOVE, LOCK or DELETE requests resulting in an error with a resource other than the resource identified in the Request-URI. |
void |
addResponse(MultiStatusResponse response)
Add a MultiStatusResponse element to this MultiStatus |
static MultiStatus |
createFromXml(Element multistatusElement)
Build a MultiStatus from the specified xml element. |
String |
getResponseDescription()
Returns the response description. |
MultiStatusResponse[] |
getResponses()
Returns the multistatus responses present as array. |
void |
setResponseDescription(String responseDescription)
Set the response description. |
Element |
toXml(Document document)
Return the Xml representation of this MultiStatus . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiStatus()
Method Detail |
public void addResourceProperties(DavResource resource, DavPropertyNameSet propNameSet, int propFindType, int depth)
resource
- The resource to add property frompropNameSet
- The requested property names of the PROPFIND requestpropFindType
- depth
- public void addResourceProperties(DavResource resource, DavPropertyNameSet propNameSet, int depth)
DavConstants.PROPFIND_BY_PROPERTY
propfind type.
resource
- The resource to add property frompropNameSet
- The requested property names of the PROPFIND requestdepth
- for
the corresponding method that allows to specify the type explicitely.
public void addResourceStatus(DavResource resource, int status, int depth)
resource
- status
- depth
- public void addResponse(MultiStatusResponse response)
MultiStatusResponse
element to this MultiStatus
response
- public MultiStatusResponse[] getResponses()
responses
present in this
multistatus.public void setResponseDescription(String responseDescription)
responseDescription
- public String getResponseDescription()
public Element toXml(Document document)
MultiStatus
.
toXml
in interface XmlSerializable
document
-
public static MultiStatus createFromXml(Element multistatusElement)
MultiStatus
from the specified xml element.
multistatusElement
-
MultiStatus
instance.
IllegalArgumentException
- if the given document is null
or does not provide the required element.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |