org.apache.jackrabbit.webdav
Interface DavSessionProvider


public interface DavSessionProvider

DavSessionProvider is an interface for components that can initiate and complete DavSessions. A provider is responsible for supplying references from a WebdavRequest to a DavSession when acquired and removing the references when released.


Method Summary
 boolean attachSession(WebdavRequest request)
          Acquires a DavSession.
 void releaseSession(WebdavRequest request)
          Releases the reference from the request to the session.
 

Method Detail

attachSession

public 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:
true if the session was attached to the request; false otherwise.
Throws:
DavException - if a problem occurred while obtaining the session

releaseSession

public void releaseSession(WebdavRequest request)
Releases the reference from the request to the session.

Parameters:
request -


Copyright © 2005-2006 . All Rights Reserved.