public class CookieBasedSessionManagementHelper extends Object
Constructor and Description |
---|
CookieBasedSessionManagementHelper() |
Modifier and Type | Method and Description |
---|---|
static HttpSession |
getMatchingHttpSession(Collection<HttpSession> sessions,
List<HttpCookie> cookies,
HttpSessionTokensSet siteTokens)
Gets the matching http session, if any, for a particular message containing a list of
cookies, from a set of sessions.
|
static void |
processMessageToMatchSession(HttpMessage message,
HttpSession session)
Modifies a message so its Request Header/Body matches the web session provided.
|
static void |
processMessageToMatchSession(HttpMessage message,
List<HttpCookie> requestCookies,
HttpSession session)
Modifies a message so its Request Header/Body matches the web session provided.
|
public static void processMessageToMatchSession(HttpMessage message, HttpSession session)
message
- the messagesession
- the sessionpublic static void processMessageToMatchSession(HttpMessage message, List<HttpCookie> requestCookies, HttpSession session)
message
- the messagerequestCookies
- a pre-computed list with the request cookies (for optimization reasons)session
- the sessionpublic static HttpSession getMatchingHttpSession(Collection<HttpSession> sessions, List<HttpCookie> cookies, HttpSessionTokensSet siteTokens)
sessions
- the existing sessionscookies
- the cookies present in the request header of the messagesiteTokens
- the tokens