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 Details

  • 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:
      attachSession in interface org.apache.jackrabbit.webdav.DavSessionProvider
      Throws:
      org.apache.jackrabbit.webdav.DavException
      See Also:
      • DavSessionProvider.attachSession(org.apache.jackrabbit.webdav.WebdavRequest)
    • releaseSession

      public void releaseSession(org.apache.jackrabbit.webdav.WebdavRequest request)
      Specified by:
      releaseSession in interface org.apache.jackrabbit.webdav.DavSessionProvider
      See Also:
      • DavSessionProvider.releaseSession(org.apache.jackrabbit.webdav.WebdavRequest)
    • setRepository

      public void setRepository(A_CmsRepository repository)
      Sets the repository.
      Parameters:
      repository - the repository