Class SessionFactory
java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.session.SessionFactory
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
dispose
(javax.servlet.http.HttpServletRequest request) static CoreSessionProvider<?>
getCoreProvider
(javax.servlet.http.HttpServletRequest request) static String
getRepositoryName
(javax.servlet.http.HttpServletRequest request) Resolves the repository name in the following order:static CoreSession
static CoreSession
getSession
(String repositoryName) static CoreSession
getSession
(javax.servlet.http.HttpServletRequest request) static CoreSession
getSession
(javax.servlet.http.HttpServletRequest request, String repositoryName) static SessionRef
getSessionRef
(javax.servlet.http.HttpServletRequest request) static SessionRef
getSessionRef
(javax.servlet.http.HttpServletRequest request, String repositoryName) static void
setDefaultRepository
(String repoName)
-
Field Details
-
SESSION_FACTORY_KEY
-
-
Constructor Details
-
SessionFactory
public SessionFactory()
-
-
Method Details
-
setDefaultRepository
-
getRepositoryName
Resolves the repository name in the following order:- "X-NXRepository" request attribute - "X-NXRepository" request header - "nxrepository" request parameter - default
-
getCoreProvider
-
dispose
public static void dispose(javax.servlet.http.HttpServletRequest request) -
getSession
-
getSession
-
getSession
-
getSession
public static CoreSession getSession(javax.servlet.http.HttpServletRequest request, String repositoryName) -
getSessionRef
-
getSessionRef
public static SessionRef getSessionRef(javax.servlet.http.HttpServletRequest request, String repositoryName)
-