org.apache.jackrabbit.webdav.jcr
Class DavResourceFactoryImpl

java.lang.Object
  extended by org.apache.jackrabbit.webdav.jcr.DavResourceFactoryImpl
All Implemented Interfaces:
DavResourceFactory

public class DavResourceFactoryImpl
extends Object
implements DavResourceFactory

DavResourceFactoryImpl...


Constructor Summary
DavResourceFactoryImpl(TxLockManagerImpl txMgr, SubscriptionManager subsMgr)
          Create a new DavResourceFactoryImpl.
 
Method Summary
 DavResource createResource(DavResourceLocator locator, DavServletRequest request, DavServletResponse response)
          Create a new DavResource from the specified locator and request objects.
 DavResource createResource(DavResourceLocator locator, DavSession session)
          Create a new DavResource from the given locator and session.
protected  Item getItem(JcrDavSession sessionImpl, DavResourceLocator locator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DavResourceFactoryImpl

public DavResourceFactoryImpl(TxLockManagerImpl txMgr,
                              SubscriptionManager subsMgr)
Create a new DavResourceFactoryImpl.

Parameters:
txMgr -
subsMgr -
Method Detail

createResource

public DavResource createResource(DavResourceLocator locator,
                                  DavServletRequest request,
                                  DavServletResponse response)
                           throws DavException
Create a new DavResource from the specified locator and request objects. Note, that in contrast to createResource(DavResourceLocator, DavSession) the locator may point to a non-existing resource.

If the request contains a Label header, the resource is build from the indicated version instead.

Specified by:
createResource in interface DavResourceFactory
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 new DavResource from the given locator and session.

Specified by:
createResource in interface DavResourceFactory
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 the root location.

getItem

protected Item getItem(JcrDavSession sessionImpl,
                       DavResourceLocator locator)
                throws PathNotFoundException,
                       RepositoryException
Throws:
PathNotFoundException
RepositoryException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.