public class SessionUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCALE |
static String |
USER |
| Constructor and Description |
|---|
SessionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Locale |
currentLocale(String sid) |
static Locale |
currentLocale(UserSession session) |
static User |
getSessionUser(javax.servlet.http.HttpServletRequest request) |
static User |
getSessionUser(String sid) |
static UserSession |
validateSession(javax.servlet.http.HttpServletRequest request) |
static UserSession |
validateSession(String sid)
Throws a runtime exception id the given session is invalid
|
public static final String LOCALE
public static final String USER
public static UserSession validateSession(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic static UserSession validateSession(String sid) throws InvalidSessionException
public static Locale currentLocale(UserSession session) throws InvalidSessionException
InvalidSessionExceptionpublic static Locale currentLocale(String sid) throws InvalidSessionException
InvalidSessionExceptionpublic static User getSessionUser(String sid) throws InvalidSessionException
InvalidSessionExceptionpublic static User getSessionUser(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException
javax.servlet.ServletExceptionCopyright © 2008-2014 Logical Objects. All Rights Reserved.