Package org.apache.jackrabbit.server.jcr
Class JCRWebdavServer
- java.lang.Object
-
- org.apache.jackrabbit.server.jcr.JCRWebdavServer
-
- All Implemented Interfaces:
DavSessionProvider
public class JCRWebdavServer extends Object implements DavSessionProvider
JCRWebdavServer
...
-
-
Constructor Summary
Constructors Constructor Description JCRWebdavServer(Repository repository, SessionProvider sessionProvider)
Creates a new JCRWebdavServer that operates on the given repository.JCRWebdavServer(Repository repository, SessionProvider sessionProvider, int concurrencyLevel)
Creates a new JCRWebdavServer that operates on the given repository.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
JCRWebdavServer
public JCRWebdavServer(Repository repository, SessionProvider sessionProvider)
Creates a new JCRWebdavServer that operates on the given repository.- Parameters:
repository
-
-
JCRWebdavServer
public JCRWebdavServer(Repository repository, SessionProvider sessionProvider, int concurrencyLevel)
Creates a new JCRWebdavServer that operates on the given repository.- Parameters:
repository
-concurrencyLevel
-
-
-
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 interfaceDavSessionProvider
- 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 interfaceDavSessionProvider
- Parameters:
request
-- See Also:
DavSessionProvider.releaseSession(org.apache.jackrabbit.webdav.WebdavRequest)
-
-