Package com.logicaldoc.dropbox
Class SessionUtil
- java.lang.Object
 - 
- com.logicaldoc.dropbox.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 LocalecurrentLocale(Session session)static LocalecurrentLocale(String sid)static SessionvalidateSession(String sid)Throws a runtime exception id the given session is invalidstatic SessionvalidateSession(javax.servlet.http.HttpServletRequest request) 
 - 
 
- 
- 
Field Detail
- 
LOCALE
public static final String LOCALE
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
validateSession
public static Session validateSession(javax.servlet.http.HttpServletRequest request) throws InvalidSessionException
- Throws:
 InvalidSessionException
 
- 
validateSession
public static Session validateSession(String sid) throws InvalidSessionException
Throws a runtime exception id the given session is invalid- Parameters:
 sid- identifier of the session- Returns:
 - the session
 - Throws:
 InvalidSessionException- if the session does not exist or it is expired
 
- 
currentLocale
public static Locale currentLocale(Session session) throws ServerException
- Throws:
 ServerException
 
- 
currentLocale
public static Locale currentLocale(String sid) throws ServerException
- Throws:
 ServerException
 
 - 
 
 -