Package org.apache.jackrabbit.webdav.jcr
Class DavResourceFactoryImpl
- java.lang.Object
-
- org.apache.jackrabbit.webdav.jcr.DavResourceFactoryImpl
-
- All Implemented Interfaces:
DavResourceFactory
public class DavResourceFactoryImpl extends Object implements DavResourceFactory
DavResourceFactoryImpl...
-
-
Constructor Summary
Constructors Constructor Description DavResourceFactoryImpl(TxLockManagerImpl txMgr, SubscriptionManager subsMgr)Create a newDavResourceFactoryImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DavResourcecreateResource(DavResourceLocator locator, DavServletRequest request, DavServletResponse response)Create a newDavResourcefrom the specified locator and request objects.DavResourcecreateResource(DavResourceLocator locator, DavSession session)Create a newDavResourcefrom the given locator and session.protected ItemgetItem(JcrDavSession sessionImpl, DavResourceLocator locator)
-
-
-
Constructor Detail
-
DavResourceFactoryImpl
public DavResourceFactoryImpl(TxLockManagerImpl txMgr, SubscriptionManager subsMgr)
Create a newDavResourceFactoryImpl.- Parameters:
txMgr-subsMgr-
-
-
Method Detail
-
createResource
public DavResource createResource(DavResourceLocator locator, DavServletRequest request, DavServletResponse response) throws DavException
Create a newDavResourcefrom the specified locator and request objects. Note, that in contrast tocreateResource(DavResourceLocator, DavSession)the locator may point to a non-existing resource.If the request contains a
Label header, the resource is build from the indicatedversioninstead.- Specified by:
createResourcein interfaceDavResourceFactory- Parameters:
locator-request-response-- Returns:
- Throws:
DavException- See Also:
DavResourceFactory.createResource(org.apache.jackrabbit.webdav.DavResourceLocator, org.apache.jackrabbit.webdav.DavServletRequest, org.apache.jackrabbit.webdav.DavServletResponse)
-
createResource
public DavResource createResource(DavResourceLocator locator, DavSession session) throws DavException
Create a newDavResourcefrom the given locator and session.- Specified by:
createResourcein interfaceDavResourceFactory- Parameters:
locator-session-- Returns:
- DavResource representing either a repository item or the
RootCollection. - Throws:
DavException- if the given locator does neither refer to a repository item nor does represent theroot location.
-
getItem
protected Item getItem(JcrDavSession sessionImpl, DavResourceLocator locator) throws PathNotFoundException, RepositoryException
-
-