|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.webdav.MultiStatusResponse
The WebdavMultistatusResponse
class implements a structure that
hold a WebDAV multistatus response. Properties can be added to this response
with the respective error/status code.
Field Summary |
Constructor Summary | |
MultiStatusResponse(DavResource resource,
DavPropertyNameSet propNameSet)
Constucts a WebDAV multistatus response and retrieves the resource properties according to the given DavPropertyNameSet . |
|
MultiStatusResponse(DavResource resource,
DavPropertyNameSet propNameSet,
int propFindType)
Constucts a WebDAV multistatus response and retrieves the resource properties according to the given DavPropertyNameSet . |
|
MultiStatusResponse(String href)
Constructs an empty WebDAV multistatus response |
|
MultiStatusResponse(String href,
int status)
Constructs an WebDAV multistatus response for a given resource. |
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(org.jdom.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()
|
void |
setResponseDescription(String responseDescription)
Set the content of the optional response description element, which is intended to contain a message that can be displayed to the user explaining the nature of this response. |
org.jdom.Element |
toXml()
Creates the JDOM element for this reponse. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiStatusResponse(String href)
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
public MultiStatusResponse(String href, int status)
Method Detail |
public String getHref()
public void add(DavProperty property)
property
- the property to addpublic void add(DavPropertyName propertyName)
propertyName
- the property name to addpublic void add(DavProperty property, int status)
property
- the property to addstatus
- the status of the response set to selectpublic void add(DavPropertyName propertyName, int status)
propertyName
- the property name to addstatus
- the status of the response set to selectpublic DavPropertySet getProperties(int status)
status
-
public DavPropertyNameSet getPropertyNames(int status)
status
-
public String getResponseDescription()
public void setResponseDescription(String responseDescription)
responseDescription
- public org.jdom.Element toXml()
public static MultiStatusResponse createFromXml(org.jdom.Element responseElement)
responseElement
-
MultiStatusResponse
instance
IllegalArgumentException
- if the specified element is null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |