public interface SessionManager extends LifeCycle, Serializable
Modifier and Type | Interface and Description |
---|---|
static interface |
SessionManager.Session |
Modifier and Type | Field and Description |
---|---|
static String |
__MaxAge
Session Max Age.
|
static String |
__SessionCookie
Session cookie name.
|
static String |
__SessionDomain
Session Domain.
|
static String |
__SessionPath
Session Path.
|
static String |
__SessionURL
Session URL parameter name.
|
static String |
__SessionUrlPrefix |
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(EventListener listener)
Add an event listener.
|
boolean |
getHttpOnly() |
javax.servlet.http.HttpSession |
getHttpSession(String id) |
int |
getMaxInactiveInterval() |
boolean |
getSecureCookies() |
javax.servlet.http.Cookie |
getSessionCookie(javax.servlet.http.HttpSession session,
boolean requestIsSecure)
Get a Cookie for a session.
|
void |
initialize(ServletHandler handler) |
javax.servlet.http.HttpSession |
newHttpSession(javax.servlet.http.HttpServletRequest request) |
void |
removeEventListener(EventListener listener) |
void |
setMaxInactiveInterval(int seconds) |
static final String __SessionCookie
static final String __SessionURL
static final String __SessionUrlPrefix
static final String __SessionDomain
static final String __SessionPath
static final String __MaxAge
void initialize(ServletHandler handler)
javax.servlet.http.HttpSession getHttpSession(String id)
javax.servlet.http.HttpSession newHttpSession(javax.servlet.http.HttpServletRequest request)
boolean getSecureCookies()
boolean getHttpOnly()
int getMaxInactiveInterval()
void setMaxInactiveInterval(int seconds)
void addEventListener(EventListener listener) throws IllegalArgumentException
listener
- An Event Listener. Individual SessionManagers
implemetations may accept arbitrary listener types, but they
are expected to at least handle
HttpSessionActivationListener,
HttpSessionAttributeListener,
HttpSessionBindingListener,
HttpSessionListenerIllegalArgumentException
- If an unsupported listener
is passed.void removeEventListener(EventListener listener)
javax.servlet.http.Cookie getSessionCookie(javax.servlet.http.HttpSession session, boolean requestIsSecure)
session
- Copyright © 2013. All rights reserved.