Class MultistatusException

All Implemented Interfaces:
Serializable

public class MultistatusException extends DavException
Exception which shall be thrown when status for several items shall be known.
See Also:
  • Constructor Details

    • MultistatusException

      public MultistatusException()
      Initializes a new instance of the MultistatusException class.
  • Method Details

    • addResponses

      public void addResponses(Response... responses)
      Adds responses for items.
      Parameters:
      responses - Responses.
    • addResponse

      public void addResponse(String path, WebDavStatus status)
      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

      public void addResponse(String path, WebDavStatus status, String href, String responseDescription)
      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

      public void addResponse(String path, Property property, WebDavStatus status)
      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

      public Response[] getResponses()
      Gets the array of the responses for multiple hierarchy items in this multistatus response.
      Returns:
      Array of responses added so far.
    • getResponseDescription

      public String getResponseDescription()
      Retrieves description of whole response.
      Returns:
      Description of the response.
    • setResponseDescription

      public void setResponseDescription(String responseDescription)
      Sets description of the response.
      Parameters:
      responseDescription - Description of the response.