Class SessionFactory

    • Field Detail

      • SESSION_FACTORY_KEY

        public static final String SESSION_FACTORY_KEY
    • Constructor Detail

      • SessionFactory

        public SessionFactory()
    • 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​(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)