Package org.glassfish.grizzly.servlet
Class ServletSessionManager
java.lang.Object
org.glassfish.grizzly.servlet.ServletSessionManager
- All Implemented Interfaces:
SessionManager
The Servlet-aware
SessionManager implementation.-
Method Summary
Modifier and TypeMethodDescriptionchangeSessionId(Request request, Session session) Change theSessionid and return the original id.voidconfigureSessionCookie(Request request, Cookie cookie) Configure session cookie before adding it to theRequest.getResponse().createSession(Request request) getSession(Request request, String requestedSessionId) Return the session associated with this Request, creating one if necessary and requested.static SessionManagerinstance()voidsetSessionCookieName(String name) Set the session cookie name that will be used by sessions created by thisSessionManager.
-
Method Details
-
instance
- Returns:
- DefaultSessionManager singleton
-
getSession
Description copied from interface:SessionManagerReturn the session associated with this Request, creating one if necessary and requested.- Specified by:
getSessionin interfaceSessionManager- Parameters:
request-RequestrequestedSessionId- the session id associated with theRequest- Returns:
Session
-
createSession
Description copied from interface:SessionManager- Specified by:
createSessionin interfaceSessionManager- Parameters:
request-Request- Returns:
- a new
Sessionassociated with theRequest
-
changeSessionId
Description copied from interface:SessionManagerChange theSessionid and return the original id.- Specified by:
changeSessionIdin interfaceSessionManager- Parameters:
request-Requestsession-Session- Returns:
- the old session id
-
configureSessionCookie
Description copied from interface:SessionManagerConfigure session cookie before adding it to theRequest.getResponse().- Specified by:
configureSessionCookiein interfaceSessionManager
-
setSessionCookieName
Description copied from interface:SessionManagerSet the session cookie name that will be used by sessions created by thisSessionManager.- Specified by:
setSessionCookieNamein interfaceSessionManager- Parameters:
name- the session cookie name
-
getSessionCookieName
- Specified by:
getSessionCookieNamein interfaceSessionManager- Returns:
- the session cookie name
-