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