|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.simple.DavSessionProviderImpl
Simple implementation of the DavSessionProvider
interface that uses a CredentialsProvider to locate
credentials in the request, log into the respository, and provide
a DavSession to the request.
| Constructor Summary | |
DavSessionProviderImpl(Repository rep,
SessionProvider sesProvider)
Creates a new DavSessionProviderImpl |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DavSessionProviderImpl(Repository rep,
SessionProvider sesProvider)
rep - sesProvider - | Method Detail |
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 underlaying repository session
in order make sure they can be reset when attaching a session to the
next request. Finally the session is logged-out. The latter is a workaround
only, since the SessionProvider may not clean up unused sessions properly.
releaseSession in interface org.apache.jackrabbit.webdav.DavSessionProviderrequest - DavSessionProvider.releaseSession(org.apache.jackrabbit.webdav.WebdavRequest)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||