Search in sources :

Example 6 with DavSession

use of org.apache.jackrabbit.webdav.DavSession in project jackrabbit by apache.

the class JCRWebdavServer method attachSession.

//---------------------------------------< DavSessionProvider interface >---
/**
     * Acquires a DavSession either from the session cache or creates a new
     * one by login to the repository.
     * Upon success, the WebdavRequest will reference that session.
     *
     * @param request
     * @throws DavException if no session could be obtained.
     * @see DavSessionProvider#attachSession(org.apache.jackrabbit.webdav.WebdavRequest)
     */
public boolean attachSession(WebdavRequest request) throws DavException {
    DavSession session = cache.get(request);
    request.setDavSession(session);
    return true;
}
Also used : JcrDavSession(org.apache.jackrabbit.webdav.jcr.JcrDavSession) DavSession(org.apache.jackrabbit.webdav.DavSession)

Aggregations

DavSession (org.apache.jackrabbit.webdav.DavSession)6 JcrDavSession (org.apache.jackrabbit.webdav.jcr.JcrDavSession)4 Session (javax.jcr.Session)3 DavException (org.apache.jackrabbit.webdav.DavException)2 Item (javax.jcr.Item)1 NoSuchWorkspaceException (javax.jcr.NoSuchWorkspaceException)1 Node (javax.jcr.Node)1 PathNotFoundException (javax.jcr.PathNotFoundException)1 RepositoryException (javax.jcr.RepositoryException)1 ServletException (javax.servlet.ServletException)1 JcrDavException (org.apache.jackrabbit.webdav.jcr.JcrDavException)1