Class MultistatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ithit.webdav.server.exceptions.DavException
com.ithit.webdav.server.exceptions.MultistatusException
- All Implemented Interfaces:
Serializable
Exception which shall be thrown when status for several items shall be known.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addResponse
(String path, WebDavStatus status) Adds response for an item.void
addResponse
(String path, WebDavStatus status, String href, String responseDescription) Adds response for an item.void
addResponse
(String path, Property property, WebDavStatus status) Adds response for a property.void
addResponse
(String path, Property property, WebDavStatus status, String responseDescription, String propResponseDescription) Adds response for a property with a description.void
addResponses
(Response... responses) Adds responses for items.Retrieves description of whole response.Response[]
Gets the array of the responses for multiple hierarchy items in this multistatus response.void
setResponseDescription
(String responseDescription) Sets description of the response.Methods inherited from class com.ithit.webdav.server.exceptions.DavException
getExtendedError, getLocalName, getNamespace, getStatus, setLocalName, setNamespace
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MultistatusException
public MultistatusException()Initializes a new instance of theMultistatusException
class.
-
-
Method Details
-
addResponses
Adds responses for items.- Parameters:
responses
- Responses.
-
addResponse
Adds response for an item. Use this method to add response in copyTo, delete, moveTo, lock operations to describe status for individual items.- Parameters:
path
- Item path.status
- Status for the item.
-
addResponse
Adds response for an item. Most of all this method will not be needed. It is included only to provide full compatibility with RFC.- Parameters:
path
- Item path.status
- Status for the item.href
- Path to the response item.responseDescription
- Description of the response.
-
addResponse
Adds response for a property. You will use this method in updateProperties method.- Parameters:
path
- Path to an item property belongs to.property
- Property.status
- Status for the property.
-
addResponse
public void addResponse(String path, Property property, WebDavStatus status, String responseDescription, String propResponseDescription) Adds response for a property with a description. Most of all this method will not be needed. It is included only to provide full compatibility with RFC.- Parameters:
path
- Path to an item property belongs to.property
- Property.status
- Status for the property.responseDescription
- Description of the response for the item property belongs to.propResponseDescription
- Description for the property status.
-
getResponses
Gets the array of the responses for multiple hierarchy items in this multistatus response.- Returns:
- Array of responses added so far.
-
getResponseDescription
Retrieves description of whole response.- Returns:
- Description of the response.
-
setResponseDescription
Sets description of the response.- Parameters:
responseDescription
- Description of the response.
-