|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.server.SessionProviderImpl
public class SessionProviderImpl
This Class implements a default session provider uses a credentials provider.
| Constructor Summary | |
|---|---|
SessionProviderImpl(CredentialsProvider cp)
Creates a new SessionProvider |
|
| Method Summary | |
|---|---|
Session |
getSession(javax.servlet.http.HttpServletRequest request,
Repository repository,
String workspace)
Provides the repository session suitable for the given request. |
void |
releaseSession(Session session)
Informs this provider that the session aquired by a previous SessionProvider.getSession(javax.servlet.http.HttpServletRequest, javax.jcr.Repository, java.lang.String) call is no longer needed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionProviderImpl(CredentialsProvider cp)
cp - | Method Detail |
|---|
public Session getSession(javax.servlet.http.HttpServletRequest request,
Repository repository,
String workspace)
throws LoginException,
RepositoryException,
javax.servlet.ServletException
getSession in interface SessionProviderrepository - the repository to loginworkspace - the workspace name
LoginException - if the credentials are invalid
javax.servlet.ServletException - if an error occurrs
RepositoryExceptionpublic void releaseSession(Session session)
SessionProvider.getSession(javax.servlet.http.HttpServletRequest, javax.jcr.Repository, java.lang.String) call is no longer needed.
releaseSession in interface SessionProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||