public interface SessionProvider
Modifier and Type | Method and 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 previous
getSession(javax.servlet.http.HttpServletRequest, javax.jcr.Repository, java.lang.String) call is no longer needed. |
Session getSession(javax.servlet.http.HttpServletRequest request, Repository rep, String workspace) throws LoginException, javax.servlet.ServletException, RepositoryException
request
- rep
- the repository to loginworkspace
- the workspace nameLoginException
- if the credentials are invalidjavax.servlet.ServletException
- if an error occursRepositoryException
void releaseSession(Session session)
getSession(javax.servlet.http.HttpServletRequest, javax.jcr.Repository, java.lang.String)
call is no longer needed.session
- Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.