Class SessionFactory

java.lang.Object
org.nuxeo.ecm.webengine.jaxrs.session.SessionFactory

public class SessionFactory extends Object
Author:
Bogdan Stefanescu
  • Field Details

    • SESSION_FACTORY_KEY

      public static final String SESSION_FACTORY_KEY
  • Constructor Details

    • SessionFactory

      public SessionFactory()
  • Method Details

    • 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)