|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.MultiStatusResponse
public class MultiStatusResponse
MultiStatusResponse represents the DAV:multistatus element defined
by RFC 2518:
<!ELEMENT response (href, ((href*, status)|(propstat+)), responsedescription?) > <!ELEMENT status (#PCDATA) > <!ELEMENT propstat (prop, status, responsedescription?) > <!ELEMENT responsedescription (#PCDATA) > <!ELEMENT prop ANY >
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
MultiStatusResponse(DavResource resource,
DavPropertyNameSet propNameSet)
Constructs a WebDAV multistatus response and retrieves the resource properties according to the given DavPropertyNameSet. |
|
MultiStatusResponse(DavResource resource,
DavPropertyNameSet propNameSet,
int propFindType)
Constructs a WebDAV multistatus response and retrieves the resource properties according to the given DavPropertyNameSet. |
|
MultiStatusResponse(String href,
int statusCode)
Constructs an WebDAV multistatus response for a given resource. |
|
MultiStatusResponse(String href,
int statusCode,
String responseDescription)
Constructs an WebDAV multistatus response for a given resource. |
|
MultiStatusResponse(String href,
Status status,
String responseDescription)
Constructs an WebDAV multistatus response |
|
MultiStatusResponse(String href,
String responseDescription)
Constructs an empty WebDAV multistatus response of type 'PropStat' |
|
| Method Summary | |
|---|---|
void |
add(DavProperty<?> property)
Adds a property to this response '200' propstat set. |
void |
add(DavProperty<?> property,
int status)
Adds a property to this response |
void |
add(DavPropertyName propertyName)
Adds a property name to this response '200' propstat set. |
void |
add(DavPropertyName propertyName,
int status)
Adds a property name to this response |
static MultiStatusResponse |
createFromXml(Element responseElement)
Build a new response object from the given xml element. |
String |
getHref()
Returns the href |
DavPropertySet |
getProperties(int status)
Get properties present in this response for the given status code. |
DavPropertyNameSet |
getPropertyNames(int status)
Get property names present in this response for the given status code. |
String |
getResponseDescription()
|
Status[] |
getStatus()
Return an array listing all 'status' available is this response object. |
Element |
toXml(Document document)
Returns the xml representation of the implementing object as Element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiStatusResponse(String href,
Status status,
String responseDescription)
href - status - responseDescription -
public MultiStatusResponse(String href,
int statusCode)
null.
href - statusCode -
public MultiStatusResponse(String href,
int statusCode,
String responseDescription)
href - statusCode - responseDescription -
public MultiStatusResponse(String href,
String responseDescription)
public MultiStatusResponse(DavResource resource,
DavPropertyNameSet propNameSet)
DavPropertyNameSet.
resource - propNameSet -
public MultiStatusResponse(DavResource resource,
DavPropertyNameSet propNameSet,
int propFindType)
DavPropertyNameSet. It
adds all known property to the '200' set, while unknown properties are
added to the '404' set.
Note, that the set of property names is ignored in case of a DavConstants.PROPFIND_ALL_PROP and DavConstants.PROPFIND_PROPERTY_NAMES propFindType.
resource - The resource to retrieve the property frompropNameSet - The property name set as obtained from the request
body.propFindType - any of the following values: DavConstants.PROPFIND_ALL_PROP, DavConstants.PROPFIND_BY_PROPERTY, DavConstants.PROPFIND_PROPERTY_NAMES, DavConstants.PROPFIND_ALL_PROP_INCLUDE| Method Detail |
|---|
public String getHref()
getHref()public String getResponseDescription()
getResponseDescription()public Status[] getStatus()
MultiStatusResponse defines an response consisting of
href and status elements.
public Element toXml(Document document)
XmlSerializableElement. The given Document is used
as factory and represents the owner document of the returned DOM element.
toXml in interface XmlSerializabledocument -
XmlSerializable.toXml(org.w3c.dom.Document)public void add(DavProperty<?> property)
property - the property to addpublic void add(DavPropertyName propertyName)
propertyName - the property name to add
public void add(DavProperty<?> property,
int status)
property - the property to addstatus - the status of the response set to select
public void add(DavPropertyName propertyName,
int status)
propertyName - the property name to addstatus - the status of the response set to selectpublic DavPropertySet getProperties(int status)
DavPropertySet will be returned.
status -
public DavPropertyNameSet getPropertyNames(int status)
DavPropertyNameSet will be returned.
status -
public static MultiStatusResponse createFromXml(Element responseElement)
responseElement -
MultiStatusResponse instance
IllegalArgumentException - if the specified element is
null or not a DAV:response element or if the mandatory
DAV:href child is missing.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||