Interface MessageInfoContext
- 
- All Superinterfaces:
 Context
- All Known Subinterfaces:
 MessageContext
- All Known Implementing Classes:
 MessageContextImpl
public interface MessageInfoContext extends Context
The authentication framework uses this
MessageContextInfoto 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestgetRequest()Gets the request object from thisMessageContextInfo.Map<String,Object>getRequestContextMap()Gets the context map for this message exchange.ResponsegetResponse()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 Detail
- 
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
void setRequest(Request request)
Sets the request object for thisMessageContextInfo.- Parameters:
 request- TheRequestobject.
 
- 
setResponse
void setResponse(Response response)
Sets the response object for thisMessageContextInfo.- Parameters:
 response- TheResponseobject.
 
- 
getRequestContextMap
Map<String,Object> 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.
 
 
 - 
 
 -