com.dyuproject.web
Class CookieSessionManager
java.lang.Object
com.dyuproject.web.CookieSessionManager
public final class CookieSessionManager
- extends Object
Manages the CookieSession.
The environment is setup from a java.util.Properties
with config parameters that starts with session.cookie.*
- Author:
- David Yu
- Date created:
- Jun 2, 2008
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SESSION_COOKIE_SECURITY_SECRET_KEY
public static final String SESSION_COOKIE_SECURITY_SECRET_KEY
- See Also:
- Constant Field Values
SESSION_COOKIE_NAME
public static final String SESSION_COOKIE_NAME
- See Also:
- Constant Field Values
SESSION_COOKIE_MAX_AGE
public static final String SESSION_COOKIE_MAX_AGE
- See Also:
- Constant Field Values
SESSION_COOKIE_DOMAIN
public static final String SESSION_COOKIE_DOMAIN
- See Also:
- Constant Field Values
SESSION_COOKIE_PATH
public static final String SESSION_COOKIE_PATH
- See Also:
- Constant Field Values
SESSION_COOKIE_INCLUDE_REMOTE_ADDRESS
public static final String SESSION_COOKIE_INCLUDE_REMOTE_ADDRESS
- See Also:
- Constant Field Values
CookieSessionManager
public CookieSessionManager()
getCurrentSession
public static CookieSession getCurrentSession()
getJSON
public StandardJSON getJSON()
init
public void init(Properties props)
getSession
public CookieSession getSession(HttpServletRequest request,
boolean create)
persistSession
public boolean persistSession(CookieSession session,
HttpServletRequest request,
HttpServletResponse response)
throws IOException
- Throws:
IOException
invalidateSession
public boolean invalidateSession(HttpServletResponse response)
throws IOException
- Throws:
IOException
postHandle
public void postHandle(HttpServletRequest request,
HttpServletResponse response)
throws IOException
- Throws:
IOException
Copyright © 2008-2013. All Rights Reserved.