Class FRQSessionManager


  • public final class FRQSessionManager
    extends Object
    • Constructor Detail

      • FRQSessionManager

        public FRQSessionManager()
    • Method Detail

      • registerFormRequest

        public static FRQSession registerFormRequest​(javax.servlet.http.HttpServletRequest request)
      • current

        public static FRQSession current​(javax.servlet.http.HttpServletRequest request)
      • current

        public static FRQSession current​(javax.servlet.http.HttpServletRequest request,
                                         String formSessionID)
      • addSession

        public static FRQSession addSession​(javax.servlet.http.HttpSession session,
                                            String formSessionID,
                                            Locale locale)
      • remove

        public static FRQSession remove​(javax.servlet.http.HttpServletRequest request,
                                        String formRequestId)
      • check

        public static boolean check​(javax.servlet.http.HttpServletRequest request,
                                    boolean remove)
      • check

        public static boolean check​(javax.servlet.http.HttpServletRequest request,
                                    String formRequestId,
                                    boolean remove)
      • getSession

        public static FRQSession getSession​(javax.servlet.http.HttpServletRequest request)
      • getSession

        public static FRQSession getSession​(javax.servlet.http.HttpServletRequest request,
                                            String formSessionID)
      • getSession

        public static FRQSession getSession​(javax.servlet.http.HttpSession session,
                                            String formSessionID)
      • clearAllButFRQSessionParameters

        public static void clearAllButFRQSessionParameters​(javax.servlet.http.HttpSession session)
      • getSessionMap

        public static Map<String,​FRQSession> getSessionMap​(javax.servlet.http.HttpSession session)
      • getFormSessionID

        public static String getFormSessionID​(javax.servlet.http.HttpServletRequest req)
      • renewFRID

        public static FRQSession renewFRID​(javax.servlet.http.HttpSession httpSession,
                                           FRQSession frqSession)
      • renewId

        public static void renewId​(String oldSessionId,
                                   String sessId)
      • copySession

        @Deprecated
        public static FRQSession copySession​(javax.servlet.http.HttpSession session,
                                             FRQSession oldSession)
        Deprecated.
        use renewFRID(HttpSession, FRQSession) to change the id of the current session or create a new session by yourself
        Makes a copy of the given FRQSession for the given HttpSession. The copied FRQSession is not initialized (!) and has a new ID.
        Parameters:
        session - HttpSession to make the copy for
        oldSession - FRQSession to be copied
        Returns:
        an uninitialized (!) copy of the given FRQSession
      • addSession

        @Deprecated
        public static FRQSession addSession​(javax.servlet.http.HttpSession session,
                                            String formSessionID)
        Deprecated.