Interface SessionManager
-
- All Known Implementing Classes:
DefaultSessionManager
public interface SessionManagerHTTP session manager abstraction responsible for keeping track of HTTP session associated with a userRequest.- Since:
- 2.3.17
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringchangeSessionId(Request request, Session session)Change theSessionid and return the original id.voidconfigureSessionCookie(Request request, org.glassfish.grizzly.http.Cookie cookie)Configure session cookie before adding it to theRequest.getResponse().SessioncreateSession(Request request)SessiongetSession(Request request, String requestedSessionId)Return the session associated with this Request, creating one if necessary and requested.StringgetSessionCookieName()voidsetSessionCookieName(String name)Set the session cookie name that will be used by sessions created by thisSessionManager.
-
-
-
Method Detail
-
getSession
Session getSession(Request request, String requestedSessionId)
Return the session associated with this Request, creating one if necessary and requested.
-
changeSessionId
String changeSessionId(Request request, Session session)
Change theSessionid and return the original id.
-
configureSessionCookie
void configureSessionCookie(Request request, org.glassfish.grizzly.http.Cookie cookie)
Configure session cookie before adding it to theRequest.getResponse().- Parameters:
request-cookie-
-
setSessionCookieName
void setSessionCookieName(String name)
Set the session cookie name that will be used by sessions created by thisSessionManager.- Parameters:
name- the session cookie name- Since:
- 2.3.29
-
getSessionCookieName
String getSessionCookieName()
- Returns:
- the session cookie name
- Since:
- 2.3.29
-
-