public interface SessionProvider
Modifier and Type | Method and Description |
---|---|
javax.jcr.Session |
getSession(javax.servlet.http.HttpServletRequest request,
javax.jcr.Repository rep,
String workspace)
Provides the repository session suitable for the given request.
|
void |
releaseSession(javax.jcr.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. |
javax.jcr.Session getSession(javax.servlet.http.HttpServletRequest request, javax.jcr.Repository rep, String workspace) throws javax.jcr.LoginException, javax.servlet.ServletException, javax.jcr.RepositoryException
request
- rep
- the repository to loginworkspace
- the workspace namejavax.jcr.LoginException
- if the credentials are invalidjavax.servlet.ServletException
- if an error occursjavax.jcr.RepositoryException
void releaseSession(javax.jcr.Session session)
getSession(javax.servlet.http.HttpServletRequest, javax.jcr.Repository, java.lang.String)
call is no longer needed.session
- Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.