Package de.xima.fc.session
Class FRQSessionManager
- java.lang.Object
-
- de.xima.fc.session.FRQSessionManager
-
public final class FRQSessionManager extends Object
-
-
Constructor Summary
Constructors Constructor Description FRQSessionManager()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FRQSession
addSession(XfcSession userSession, String formSessionID)
Deprecated.static FRQSession
addSession(javax.servlet.http.HttpSession session, String formSessionID)
Deprecated.static FRQSession
addSession(javax.servlet.http.HttpSession session, String formSessionID, Locale locale)
static boolean
check(javax.servlet.http.HttpServletRequest request, boolean remove)
static boolean
check(javax.servlet.http.HttpServletRequest request, String formRequestId, boolean remove)
static void
clearAllButFRQSessionParameters(javax.servlet.http.HttpSession session)
static FRQSession
copySession(javax.servlet.http.HttpSession session, FRQSession oldSession)
Deprecated.userenewFRID(HttpSession, FRQSession)
to change the id of the current session or create a new session by yourselfstatic FRQSession
current(javax.servlet.http.HttpServletRequest request)
static FRQSession
current(javax.servlet.http.HttpServletRequest request, String formSessionID)
static String
getFormSessionID(javax.servlet.http.HttpServletRequest req)
static FRQSession
getSession(XfcSession xfcSess, String formSessionID)
Deprecated.static FRQSession
getSession(javax.servlet.http.HttpServletRequest request)
static FRQSession
getSession(javax.servlet.http.HttpServletRequest request, String formSessionID)
static FRQSession
getSession(javax.servlet.http.HttpSession session, String formSessionID)
static Map<String,Map<String,FRQSession>>
getSessionMap()
static Map<String,FRQSession>
getSessionMap(javax.servlet.http.HttpSession session)
static FRQSession
registerFormRequest(javax.servlet.http.HttpServletRequest request)
static FRQSession
remove(javax.servlet.http.HttpServletRequest request, String formRequestId)
static FRQSession
renewFRID(javax.servlet.http.HttpSession httpSession, FRQSession frqSession)
static void
renewId(String oldSessionId, String sessId)
-
-
-
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)
-
getSessionMap
public static Map<String,Map<String,FRQSession>> getSessionMap()
-
renewFRID
public static FRQSession renewFRID(javax.servlet.http.HttpSession httpSession, FRQSession frqSession)
-
copySession
@Deprecated public static FRQSession copySession(javax.servlet.http.HttpSession session, FRQSession oldSession)
Deprecated.userenewFRID(HttpSession, FRQSession)
to change the id of the current session or create a new session by yourselfMakes a copy of the givenFRQSession
for the givenHttpSession
. The copiedFRQSession
is not initialized (!) and has a new ID.- Parameters:
session
-HttpSession
to make the copy foroldSession
-FRQSession
to be copied- Returns:
- an uninitialized (!) copy of the given
FRQSession
-
addSession
@Deprecated public static FRQSession addSession(XfcSession userSession, String formSessionID)
Deprecated.
-
getSession
@Deprecated public static FRQSession getSession(XfcSession xfcSess, String formSessionID)
Deprecated.
-
addSession
@Deprecated public static FRQSession addSession(javax.servlet.http.HttpSession session, String formSessionID)
Deprecated.
-
-