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 SummaryConstructors Constructor Description SessionUtil()
 - 
Method SummaryAll 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- 
LOCALEpublic static final String LOCALE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
validateSessionpublic static Session validateSession(javax.servlet.http.HttpServletRequest request) throws InvalidSessionException - Throws:
- InvalidSessionException
 
 - 
validateSessionpublic 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
 
 - 
currentLocalepublic static Locale currentLocale(Session session) throws ServerException - Throws:
- ServerException
 
 - 
currentLocalepublic static Locale currentLocale(String sid) throws ServerException - Throws:
- ServerException
 
 
- 
 
-