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

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

public class ResourceProxyFactory
extends java.lang.Object

Creates resource proxies out of XML DAV:multistatus response elements.

Version:
$Revision: 1.1.1.1.2.8 $

Constructor Summary
ResourceProxyFactory(Resource requestResource, Provider provider, PropertyNameList wantedPropertyList, PropertyNameList actualPropertyList)
          Constructor
 
Method Summary
 Resource create(org.jdom.Element responseElm, java.lang.Class resourceType)
          Recursive method.
 Resource create(Location location, java.lang.Class resourceType, java.util.Map propertiesContainer)
          Method create
 Resource createAllAttributes(org.jdom.Element responseElm)
           
 LocationImpl getLocation(org.jdom.Element re)
          Get the Location associated to the specified response element (retrieves href element).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceProxyFactory

public ResourceProxyFactory(Resource requestResource,
                            Provider provider,
                            PropertyNameList wantedPropertyList,
                            PropertyNameList actualPropertyList)
Constructor

Parameters:
requestResource - resource making request
provider - resource provider
wantedPropertyList - properties to obtain (maybe null)
actualPropertyList - underlying properties responsible for wantedPropertyList (maybe null)
Method Detail

create

public Resource create(org.jdom.Element responseElm,
                       java.lang.Class resourceType)
                throws WvcmException
Recursive method. Create resource proxy for the specified element. The result will be an instance of the specified type (cls). If (cls == null), the method tries to determine the exact resource type from selected WebDAV properties.

Parameters:
responseElm - an Element
resourceType - a Class
Returns:
a Resource
Throws:
WvcmException

create

public Resource create(Location location,
                       java.lang.Class resourceType,
                       java.util.Map propertiesContainer)
                throws WvcmException
Method create

Parameters:
propertiesContainer - a Map
resourceType - a Class
Returns:
a Resource
Throws:
WvcmException

createAllAttributes

public Resource createAllAttributes(org.jdom.Element responseElm)
                             throws WvcmException
Throws:
WvcmException

getLocation

public LocationImpl getLocation(org.jdom.Element re)
                         throws WvcmException
Get the Location associated to the specified response element (retrieves href element).

Parameters:
re - the response element
Returns:
the associated Location
Throws:
WvcmException


Copyright (c) 2003 - Apache Software Foundation