org.apache.wvcm.store.webdav.response
Class MultistatusResponse

java.lang.Object
  extended by org.apache.wvcm.store.webdav.response.AbstractResponse
      extended by org.apache.wvcm.store.webdav.response.MultistatusResponse

public class MultistatusResponse
extends AbstractResponse

Handler for multistatus response bodies.

Version:
$Revision: 1.1.1.1.2.6 $

Field Summary
 
Fields inherited from class org.apache.wvcm.store.webdav.response.AbstractResponse
dnsp, provider, requestResource, respBodyDoc
 
Constructor Summary
MultistatusResponse(Resource resource, java.io.InputStream respBodyAsStream)
          Create handler from given input stream.
MultistatusResponse(Resource resource, java.io.InputStream respBodyAsStream, PropertyNameList wantedPropertyList)
          Create handler from given input stream.
MultistatusResponse(Resource resource, java.io.InputStream respBodyAsStream, PropertyNameList wantedPropertyList, PropertyNameList actualPropertyList)
          Create handler from given input stream.
 
Method Summary
 java.util.List createAccessControlList(boolean includeInherited)
          Create List of AccessControlElement instances from DAV:acl property included in this multistatus response.
 Resource createAllAttributesProxy()
          Create the resource proxy resulting from the 1st response of this multistatus response.
 java.util.List createResourceProxies()
          Create the resource proxies resulting from this multistatus response.
 java.util.List createResourceProxies(boolean excludeRequestResource)
          Create the resource proxies resulting from this multistatus response.
 Resource createResourceProxy()
          Create the resource proxy resulting from the 1st response of this multistatus response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultistatusResponse

public MultistatusResponse(Resource resource,
                           java.io.InputStream respBodyAsStream)
                    throws WvcmException
Create handler from given input stream.

Throws:
WvcmException

MultistatusResponse

public MultistatusResponse(Resource resource,
                           java.io.InputStream respBodyAsStream,
                           PropertyNameList wantedPropertyList)
                    throws WvcmException
Create handler from given input stream.

Throws:
WvcmException

MultistatusResponse

public MultistatusResponse(Resource resource,
                           java.io.InputStream respBodyAsStream,
                           PropertyNameList wantedPropertyList,
                           PropertyNameList actualPropertyList)
                    throws WvcmException
Create handler from given input stream.

Throws:
WvcmException
Method Detail

createResourceProxy

public Resource createResourceProxy()
                             throws WvcmException
Create the resource proxy resulting from the 1st response of this multistatus response.

Returns:
the resulting resource proxy
Throws:
WvcmException

createResourceProxies

public java.util.List createResourceProxies()
                                     throws WvcmException
Create the resource proxies resulting from this multistatus response.

Returns:
the resulting resource proxies
Throws:
WvcmException

createResourceProxies

public java.util.List createResourceProxies(boolean excludeRequestResource)
                                     throws WvcmException
Create the resource proxies resulting from this multistatus response.

Parameters:
excludeRequestResource - if true, no proxy is returned for the requestResource itself
Returns:
the resulting resource proxies
Throws:
WvcmException

createAccessControlList

public java.util.List createAccessControlList(boolean includeInherited)
                                       throws WvcmException
Create List of AccessControlElement instances from DAV:acl property included in this multistatus response.

Parameters:
includeInherited - a boolean
Returns:
a List
Throws:
WvcmException

createAllAttributesProxy

public Resource createAllAttributesProxy()
                                  throws WvcmException
Create the resource proxy resulting from the 1st response of this multistatus response.

Returns:
the resulting resource proxy
Throws:
WvcmException


Copyright (c) 2003 - Apache Software Foundation