org.apache.jackrabbit.server.jcr
Class JCRWebdavServer

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

public class JCRWebdavServer
extends Object
implements org.apache.jackrabbit.webdav.DavSessionProvider

JCRWebdavServer...


Constructor Summary
JCRWebdavServer(Repository repository, SessionProvider sessionProvider)
          Creates a new JCRWebdavServer that operates on the given repository.
 
Method Summary
 boolean attachSession(org.apache.jackrabbit.webdav.WebdavRequest request)
          Acquires a DavSession either from the session cache or creates a new one by login to the repository.
 void releaseSession(org.apache.jackrabbit.webdav.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(org.apache.jackrabbit.webdav.WebdavRequest request)
                      throws org.apache.jackrabbit.webdav.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 org.apache.jackrabbit.webdav.DavSessionProvider
Parameters:
request -
Throws:
org.apache.jackrabbit.webdav.DavException - if no session could be obtained.
See Also:
DavSessionProvider.attachSession(org.apache.jackrabbit.webdav.WebdavRequest)

releaseSession

public void releaseSession(org.apache.jackrabbit.webdav.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 org.apache.jackrabbit.webdav.DavSessionProvider
Parameters:
request -
See Also:
DavSessionProvider.releaseSession(org.apache.jackrabbit.webdav.WebdavRequest)


Copyright © 2005-2006 . All Rights Reserved.