org.apache.jackrabbit.server.jcr
Class JCRWebdavServer

java.lang.Object
  extended by org.apache.jackrabbit.server.jcr.JCRWebdavServer
All Implemented Interfaces:
DavSessionProvider

public class JCRWebdavServer
extends Object
implements DavSessionProvider

JCRWebdavServer...


Constructor Summary
JCRWebdavServer(Repository repository, SessionProvider sessionProvider)
          Creates a new JCRWebdavServer that operates on the given repository.
 
Method Summary
 boolean attachSession(WebdavRequest request)
          Acquires a DavSession either from the session cache or creates a new one by login to the repository.
 void releaseSession(WebdavRequest request)
          Releases the reference from the request to the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCRWebdavServer

public JCRWebdavServer(Repository repository,
                       SessionProvider sessionProvider)
Creates a new JCRWebdavServer that operates on the given repository.

Parameters:
repository -
Method Detail

attachSession

public boolean attachSession(WebdavRequest request)
                      throws DavException
Acquires a DavSession either from the session cache or creates a new one by login to the repository. Upon success, the WebdavRequest will reference that session.

Specified by:
attachSession in interface DavSessionProvider
Parameters:
request -
Returns:
true if the session was attached to the request; false otherwise.
Throws:
DavException - if no session could be obtained.
See Also:
DavSessionProvider.attachSession(org.apache.jackrabbit.webdav.WebdavRequest)

releaseSession

public void releaseSession(WebdavRequest request)
Releases the reference from the request to the session. If no further references to the session exist, the session will be removed from the cache.

Specified by:
releaseSession in interface DavSessionProvider
Parameters:
request -
See Also:
DavSessionProvider.releaseSession(org.apache.jackrabbit.webdav.WebdavRequest)


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