Class SessionFactory
- java.lang.Object
-
- org.nuxeo.ecm.webengine.jaxrs.session.SessionFactory
-
public class SessionFactory extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description static String
SESSION_FACTORY_KEY
-
Constructor Summary
Constructors Constructor Description SessionFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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
getSession()
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 Detail
-
SESSION_FACTORY_KEY
public static final String SESSION_FACTORY_KEY
-
-
Method Detail
-
setDefaultRepository
public static void setDefaultRepository(String repoName)
-
getRepositoryName
public static String getRepositoryName(javax.servlet.http.HttpServletRequest request)
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(javax.servlet.http.HttpServletRequest request)
-
dispose
public static void dispose(javax.servlet.http.HttpServletRequest request)
-
getSession
public static CoreSession getSession()
-
getSession
public static CoreSession getSession(String repositoryName)
-
getSession
public static CoreSession getSession(javax.servlet.http.HttpServletRequest request)
-
getSession
public static CoreSession getSession(javax.servlet.http.HttpServletRequest request, String repositoryName)
-
getSessionRef
public static SessionRef getSessionRef(javax.servlet.http.HttpServletRequest request)
-
getSessionRef
public static SessionRef getSessionRef(javax.servlet.http.HttpServletRequest request, String repositoryName)
-
-