Package com.logicaldoc.sharefile
Class SessionUtil
- java.lang.Object
-
- com.logicaldoc.sharefile.SessionUtil
-
public class SessionUtil extends Object
Various methods related to the user session- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SessionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Locale
currentLocale(com.logicaldoc.core.security.Session session)
static Locale
currentLocale(String sid)
static com.logicaldoc.core.security.Session
validateSession(String sid)
Throws a runtime exception id the given session is invalidstatic com.logicaldoc.core.security.Session
validateSession(javax.servlet.http.HttpServletRequest request)
-
-
-
Field Detail
-
LOCALE
public static final String LOCALE
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateSession
public static com.logicaldoc.core.security.Session validateSession(javax.servlet.http.HttpServletRequest request) throws com.logicaldoc.gui.common.client.InvalidSessionException
- Throws:
com.logicaldoc.gui.common.client.InvalidSessionException
-
validateSession
public static com.logicaldoc.core.security.Session validateSession(String sid) throws com.logicaldoc.gui.common.client.InvalidSessionException
Throws a runtime exception id the given session is invalid- Parameters:
sid
- identifier of the session- Returns:
- the session
- Throws:
com.logicaldoc.gui.common.client.InvalidSessionException
- the session is not valid
-
currentLocale
public static Locale currentLocale(com.logicaldoc.core.security.Session session) throws com.logicaldoc.gui.common.client.ServerException
- Throws:
com.logicaldoc.gui.common.client.ServerException
-
-