public interface HttpSessionManager
Modifier and Type | Method and Description |
---|---|
java.lang.String |
encodeURL(java.lang.String url,
java.lang.String sessionAlias)
Provides the ability to encode the URL for a given session alias.
|
java.lang.String |
getCurrentSessionAlias(HttpServletRequest request)
Gets the current session's alias from the
HttpServletRequest . |
java.lang.String |
getNewSessionAlias(HttpServletRequest request)
Gets a new and unique Session alias.
|
java.util.Map<java.lang.String,java.lang.String> |
getSessionIds(HttpServletRequest request)
Gets a mapping of the session alias to the session id from the
HttpServletRequest . |
java.lang.String getCurrentSessionAlias(HttpServletRequest request)
HttpServletRequest
.request
- the HttpServletRequest
to obtain the current session's alias
from.java.util.Map<java.lang.String,java.lang.String> getSessionIds(HttpServletRequest request)
HttpServletRequest
.request
- the HttpServletRequest
to obtain the mapping from. Cannot be
null.HttpServletRequest
. Cannot be null.java.lang.String encodeURL(java.lang.String url, java.lang.String sessionAlias)
url
- the url to encode.sessionAlias
- the session alias to encode.java.lang.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