Package org.apache.jackrabbit.webdav
Interface DavSessionProvider
-
- All Known Implementing Classes:
DavSessionProviderImpl,JCRWebdavServer
public interface DavSessionProviderDavSessionProvideris an interface for components that can initiate and completeDavSessions. A provider is responsible for supplying references from aWebdavRequestto aDavSessionwhen acquired and removing the references when released.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanattachSession(WebdavRequest request)Acquires a DavSession.voidreleaseSession(WebdavRequest request)Releases the reference from the request to the session.
-
-
-
Method Detail
-
attachSession
boolean attachSession(WebdavRequest request) throws DavException
Acquires a DavSession. Upon success, the WebdavRequest will reference that session. A session will not be available if an exception is thrown.- Parameters:
request-- Returns:
trueif the session was attached to the request;falseotherwise.- Throws:
DavException- if a problem occurred while obtaining the session
-
releaseSession
void releaseSession(WebdavRequest request)
Releases the reference from the request to the session.- Parameters:
request-
-
-