Package org.opencms.webdav
Class CmsDavSessionProvider
java.lang.Object
org.opencms.webdav.CmsDavSessionProvider
- All Implemented Interfaces:
org.apache.jackrabbit.webdav.DavSessionProvider
public class CmsDavSessionProvider
extends Object
implements org.apache.jackrabbit.webdav.DavSessionProvider
Session provider implementation.
Handles the OpenCms authorization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanattachSession(org.apache.jackrabbit.webdav.WebdavRequest request) Authorizes the user using HTTP BASIC authentication, and if successful, attaches the created session to the requestvoidreleaseSession(org.apache.jackrabbit.webdav.WebdavRequest request) voidsetRepository(A_CmsRepository repository) Sets the repository.
-
Constructor Details
-
CmsDavSessionProvider
public CmsDavSessionProvider()
-
-
Method Details
-
attachSession
public boolean attachSession(org.apache.jackrabbit.webdav.WebdavRequest request) throws org.apache.jackrabbit.webdav.DavException Authorizes the user using HTTP BASIC authentication, and if successful, attaches the created session to the request- Specified by:
attachSessionin interfaceorg.apache.jackrabbit.webdav.DavSessionProvider- Throws:
org.apache.jackrabbit.webdav.DavException- See Also:
-
releaseSession
- Specified by:
releaseSessionin interfaceorg.apache.jackrabbit.webdav.DavSessionProvider- See Also:
-
setRepository
Sets the repository.- Parameters:
repository- the repository
-