public interface HttpSessionManager
| Modifier and Type | Method and Description |
|---|---|
String |
encodeURL(String url,
String sessionAlias)
Provides the ability to encode the URL for a given session alias.
|
String |
getCurrentSessionAlias(HttpServletRequest request)
Gets the current session's alias from the
HttpServletRequest. |
String |
getNewSessionAlias(HttpServletRequest request)
Gets a new and unique Session alias.
|
Map<String,String> |
getSessionIds(HttpServletRequest request)
Gets a mapping of the session alias to the session id from the
HttpServletRequest. |
String getCurrentSessionAlias(HttpServletRequest request)
HttpServletRequest.request - the HttpServletRequest to obtain the current session's alias
from.Map<String,String> getSessionIds(HttpServletRequest request)
HttpServletRequest.request - the HttpServletRequest to obtain the mapping from. Cannot be
null.HttpServletRequest. Cannot be null.String encodeURL(String url, String sessionAlias)
url - the url to encode.sessionAlias - the session alias to encode.String getNewSessionAlias(HttpServletRequest request)
HttpSessionManager#encodeURL(java.lang.String). For example:
String newAlias = httpSessionManager.getNewSessionAlias(request);
String addAccountUrl = httpSessionManager.encodeURL("./", newAlias);
request - the HttpServletRequest to get a new alias from