Class DavSessionProviderImpl

  • All Implemented Interfaces:
    org.apache.jackrabbit.webdav.DavSessionProvider

    public class DavSessionProviderImpl
    extends Object
    implements org.apache.jackrabbit.webdav.DavSessionProvider
    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 Detail

      • DavSessionProviderImpl

        public DavSessionProviderImpl​(Repository rep,
                                      SessionProvider sesProvider)
        Creates a new DavSessionProviderImpl
        Parameters:
        rep -
        sesProvider -
    • Method Detail

      • attachSession

        public boolean attachSession​(org.apache.jackrabbit.webdav.WebdavRequest request)
                              throws org.apache.jackrabbit.webdav.DavException
        Acquires a DavSession. Upon success, the WebdavRequest will reference that session. A session will not be available if an exception is thrown.
        Specified by:
        attachSession in interface org.apache.jackrabbit.webdav.DavSessionProvider
        Parameters:
        request -
        Throws:
        org.apache.jackrabbit.webdav.DavException - if a problem occurred while obtaining the session
        See Also:
        DavSessionProvider.attachSession(org.apache.jackrabbit.webdav.WebdavRequest)
      • releaseSession

        public void releaseSession​(org.apache.jackrabbit.webdav.WebdavRequest request)
        Only removes the 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.
        Specified by:
        releaseSession in interface org.apache.jackrabbit.webdav.DavSessionProvider
        Parameters:
        request -
        See Also:
        DavSessionProvider.releaseSession(org.apache.jackrabbit.webdav.WebdavRequest)