public interface SessionManagementMethod
SessionManagementMethod
represents a session management method that can be used to
manage an existing Web Session corresponding to an entity (user) interacting with a particular
WebApplication.Modifier and Type | Interface and Description |
---|---|
static class |
SessionManagementMethod.UnsupportedWebSessionException
Thrown when an unsupported type of web session is used with a
SessionManagementMethod
. |
Modifier and Type | Method and Description |
---|---|
void |
clearWebSessionIdentifiers(HttpMessage msg)
Clears any tokens or elements that can link the HttpMessage provided as a parameter to a
WebSession.
|
SessionManagementMethod |
clone()
Clones the current session management method, creating a deep-copy of it.
|
WebSession |
createEmptyWebSession()
Creates an empty web session.
|
WebSession |
extractWebSession(HttpMessage msg)
Extracts the web session information from a Http Message, creating a
WebSession
object corresponding to the Session Management Method. |
ApiResponse |
getApiResponseRepresentation()
Gets an api response that represents the Session Management Method.
|
SessionManagementMethodType |
getType()
Gets the
SessionManagementMethodType corresponding to this session management method. |
boolean |
isConfigured()
Checks if the session management method is fully configured.
|
void |
processMessageToMatchSession(HttpMessage message,
WebSession session)
Modifies a message so its Request Header/Body matches the given web session, according to
this session management method.
|
boolean isConfigured()
SessionManagementMethodType getType()
SessionManagementMethodType
corresponding to this session management method.
Implementations may return new instantiations at every call, so performance considerations should be taken by users.
SessionManagementMethod clone()
WebSession extractWebSession(HttpMessage msg)
WebSession
object corresponding to the Session Management Method.msg
- the msgWebSession createEmptyWebSession()
void clearWebSessionIdentifiers(HttpMessage msg)
msg
- the http messageApiResponse getApiResponseRepresentation()
void processMessageToMatchSession(HttpMessage message, WebSession session) throws SessionManagementMethod.UnsupportedWebSessionException
message
- the messagesession
- the sessionSessionManagementMethod.UnsupportedWebSessionException
- if the web session type is unsupported