Interface MessageInfoContext
- All Superinterfaces:
Context
- All Known Subinterfaces:
MessageContext
- All Known Implementing Classes:
MessageContextImpl
The authentication framework uses this MessageContextInfo
to pass messages and
message processing state to authentication modules for processing of messages.
This class encapsulates a request and response message objects for a message exchange. This class may also be used to associate additional context in the form of key/value pairs, with the encapsulated messages.
- Since:
- 2.0.0
- See Also:
-
MessageInfo
-
Method Summary
Modifier and TypeMethodDescriptionGets the request object from thisMessageContextInfo
.Gets the context map for this message exchange.Gets the response object from thisMessageContextInfo
.void
setRequest
(Request request) Sets the request object for thisMessageContextInfo
.void
setResponse
(Response response) Sets the response object for thisMessageContextInfo
.Methods inherited from interface org.forgerock.services.context.Context
as, asContext, containsContext, containsContext, get, getContext, getContextName, getId, getParent, getRootId, isRootContext, toJsonValue
-
Method Details
-
getRequest
Request getRequest()Gets the request object from thisMessageContextInfo
.- Returns:
- The
Request
object.
-
getResponse
Response getResponse()Gets the response object from thisMessageContextInfo
.- Returns:
- The
Response
object.
-
setRequest
Sets the request object for thisMessageContextInfo
.- Parameters:
request
- TheRequest
object.
-
setResponse
Sets the response object for thisMessageContextInfo
.- Parameters:
response
- TheResponse
object.
-
getRequestContextMap
Gets the context map for this message exchange.
This
Map
can contain shared information betweenAsyncServerAuthContext
s andAsyncServerAuthModule
s which will be maintained for a single request.- Returns:
- The request context map.
-