public interface HttpSessionStrategy
Session.| Modifier and Type | Method and Description |
|---|---|
String |
getRequestedSessionId(HttpServletRequest request)
Obtains the requested session id from the provided
HttpServletRequest. |
void |
onInvalidateSession(HttpServletRequest request,
HttpServletResponse response)
This method is invoked when a session is invalidated and should inform a client that the session id is no longer valid.
|
void |
onNewSession(Session session,
HttpServletRequest request,
HttpServletResponse response)
This method is invoked when a new session is created and should inform a client what the new session id is.
|
String getRequestedSessionId(HttpServletRequest request)
HttpServletRequest. For example,
the session id might come from a cookie or a request header.request - the HttpServletRequest to obtain the session id from. Cannot be null.HttpServletRequest to obtain the session id from.void onNewSession(Session session, HttpServletRequest request, HttpServletResponse response)
Session at this time. For example, they
may wish to add the IP Address, browser headers, the username, etc to the Session.session - the Session that is being sent to the client. Cannot be null.request - the HttpServletRequest that create the new Session Cannot be null.response - the HttpServletResponse that is associated with the HttpServletRequest that created the new Session Cannot be null.void onInvalidateSession(HttpServletRequest request, HttpServletResponse response)
request - the HttpServletRequest that invalidated the Session Cannot be null.response - the HttpServletResponse that is associated with the HttpServletRequest that invalidated the Session Cannot be null.