com.ithit.webdav.server.exceptions
Class MultistatusException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ithit.webdav.server.exceptions.DavException
              extended by com.ithit.webdav.server.exceptions.MultistatusException
All Implemented Interfaces:
java.io.Serializable

public class MultistatusException
extends DavException

Exception which shall be thrown when status for several items shall be known.

See Also:
Serialized Form

Constructor Summary
MultistatusException()
          Initializes a new instance of the MultistatusException class.
 
Method Summary
 void addResponse(java.lang.String path, Property property, WebDavStatus status)
          Adds response for a property.
 void addResponse(java.lang.String path, Property property, WebDavStatus status, java.lang.String responseDescription, java.lang.String propResponseDescription)
          Adds response for a property with a description.
 void addResponse(java.lang.String path, WebDavStatus status)
          Adds response for an item.
 void addResponse(java.lang.String path, WebDavStatus status, java.lang.String href, java.lang.String responseDescription)
          Adds response for an item.
 void addResponses(Response... responses)
          Adds responses for items.
 java.lang.String getResponseDescription()
          Retrieves description of whole response.
 Response[] getResponses()
          Gets the array of the responses for multiple hierarchy items in this multistatus response.
 void setResponseDescription(java.lang.String responseDescription)
          Sets description of the response.
 
Methods inherited from class com.ithit.webdav.server.exceptions.DavException
getLocalName, getNamespace, getStatus, setLocalName, setNamespace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultistatusException

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

Method Detail

addResponses

public void addResponses(Response... responses)
Adds responses for items.

Parameters:
responses - responses.

addResponse

public void addResponse(java.lang.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(java.lang.String path,
                        WebDavStatus status,
                        java.lang.String href,
                        java.lang.String responseDescription)
Adds response for an item. Most of all this method will not be needed. It is include 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(java.lang.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(java.lang.String path,
                        Property property,
                        WebDavStatus status,
                        java.lang.String responseDescription,
                        java.lang.String propResponseDescription)
Adds response for a property with a description. Most of all this method will not be needed. It is include 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 sofar.

getResponseDescription

public java.lang.String getResponseDescription()
Retrieves description of whole response.

Returns:
description of the response.

setResponseDescription

public void setResponseDescription(java.lang.String responseDescription)
Sets description of the response.

Parameters:
responseDescription - description of the response.


Copyright © 2009 ITHit. All Rights Reserved.