Class SessionFactory
java.lang.Object
org.nuxeo.ecm.webengine.rest.session.SessionFactory
- Author:
- Bogdan Stefanescu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddispose(jakarta.servlet.http.HttpServletRequest request) static CoreSessionProvider<?> getCoreProvider(jakarta.servlet.http.HttpServletRequest request) static StringgetRepositoryName(jakarta.servlet.http.HttpServletRequest request) Resolves the repository name in the following order:static CoreSessionstatic CoreSessiongetSession(jakarta.servlet.http.HttpServletRequest request) static CoreSessiongetSession(jakarta.servlet.http.HttpServletRequest request, String repositoryName) static CoreSessiongetSession(String repositoryName) static SessionRefgetSessionRef(jakarta.servlet.http.HttpServletRequest request) static SessionRefgetSessionRef(jakarta.servlet.http.HttpServletRequest request, String repositoryName) static voidsetDefaultRepository(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
public static CoreSessionProvider<?> getCoreProvider(jakarta.servlet.http.HttpServletRequest request) -
dispose
public static void dispose(jakarta.servlet.http.HttpServletRequest request) -
getSession
-
getSession
-
getSession
-
getSession
public static CoreSession getSession(jakarta.servlet.http.HttpServletRequest request, String repositoryName) -
getSessionRef
-
getSessionRef
public static SessionRef getSessionRef(jakarta.servlet.http.HttpServletRequest request, String repositoryName)
-