public class DavSessionProviderImpl extends Object implements org.apache.jackrabbit.webdav.DavSessionProvider
DavSessionProvider
interface that uses a CredentialsProvider to locate
credentials in the request, log into the respository, and provide
a DavSession to the request.| Constructor and Description |
|---|
DavSessionProviderImpl(Repository rep,
SessionProvider sesProvider)
Creates a new DavSessionProviderImpl
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
attachSession(org.apache.jackrabbit.webdav.WebdavRequest request)
Acquires a DavSession.
|
void |
releaseSession(org.apache.jackrabbit.webdav.WebdavRequest request)
Only removes the
DavSession object from the given request object. |
public DavSessionProviderImpl(Repository rep, SessionProvider sesProvider)
rep - sesProvider - public boolean attachSession(org.apache.jackrabbit.webdav.WebdavRequest request)
throws org.apache.jackrabbit.webdav.DavException
attachSession in interface org.apache.jackrabbit.webdav.DavSessionProviderrequest - org.apache.jackrabbit.webdav.DavException - if a problem occurred while obtaining the sessionDavSessionProvider.attachSession(org.apache.jackrabbit.webdav.WebdavRequest)public void releaseSession(org.apache.jackrabbit.webdav.WebdavRequest request)
DavSession object from the given request object.
and remove all the lock tokens from the underlying repository session
in order make sure they can be reset when attaching a session to the
next request. Finally the session provider is informed, that the
session is no longer used.releaseSession in interface org.apache.jackrabbit.webdav.DavSessionProviderrequest - DavSessionProvider.releaseSession(org.apache.jackrabbit.webdav.WebdavRequest)Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.