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.voidsetRequest(Request request) Sets the request object for thisMessageContextInfo.voidsetResponse(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
Requestobject.
-
getResponse
Response getResponse()Gets the response object from thisMessageContextInfo.- Returns:
- The
Responseobject.
-
setRequest
Sets the request object for thisMessageContextInfo.- Parameters:
request- TheRequestobject.
-
setResponse
Sets the response object for thisMessageContextInfo.- Parameters:
response- TheResponseobject.
-
getRequestContextMap
Gets the context map for this message exchange.
This
Mapcan contain shared information betweenAsyncServerAuthContexts andAsyncServerAuthModules which will be maintained for a single request.- Returns:
- The request context map.
-