public interface HttpSessionStrategy
Session
.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRequestedSessionId(javax.servlet.http.HttpServletRequest request)
Obtains the requested session id from the provided
HttpServletRequest . |
void |
onInvalidateSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method is invoked when a new session is created and should inform a client
what the new session id is.
|
java.lang.String getRequestedSessionId(javax.servlet.http.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, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Session
at this time. For example, they may wish to add the IP Address,
browser headers, the username, etc to the
Session
.void onInvalidateSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)