Package org.apache.jackrabbit.server
Interface SessionProvider
-
- All Known Implementing Classes:
DavexServletService
,SessionProviderImpl
public interface SessionProvider
This Interface defines a provider for repository sessions
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Session
getSession(javax.servlet.http.HttpServletRequest request, Repository rep, String workspace)
Provides the repository session suitable for the given request.void
releaseSession(Session session)
Informs this provider that the session acquired by a previousgetSession(javax.servlet.http.HttpServletRequest, javax.jcr.Repository, java.lang.String)
call is no longer needed.
-
-
-
Method Detail
-
getSession
Session getSession(javax.servlet.http.HttpServletRequest request, Repository rep, String workspace) throws LoginException, javax.servlet.ServletException, RepositoryException
Provides the repository session suitable for the given request.- Parameters:
request
-rep
- the repository to loginworkspace
- the workspace name- Returns:
- the session or null
- Throws:
LoginException
- if the credentials are invalidjavax.servlet.ServletException
- if an error occursRepositoryException
-
releaseSession
void releaseSession(Session session)
Informs this provider that the session acquired by a previousgetSession(javax.servlet.http.HttpServletRequest, javax.jcr.Repository, java.lang.String)
call is no longer needed.- Parameters:
session
-
-
-