Package org.jboss.weld.context.bound
Class MutableBoundRequest
java.lang.Object
org.jboss.weld.context.bound.MutableBoundRequest
- All Implemented Interfaces:
BoundRequest
An implementation of
BoundRequest backed by a pair of maps.- Author:
- Pete Muir
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the current request map.getSessionMap(boolean create) Get the current session map.
-
Constructor Details
-
MutableBoundRequest
The parameters are a backing storage for current request and session respectively- Parameters:
requestMap- represents backing storage for current requestsessionMap- represents backing storage for current session
-
-
Method Details
-
getRequestMap
Description copied from interface:BoundRequestGet the current request map.- Specified by:
getRequestMapin interfaceBoundRequest- Returns:
- the request map.
-
getSessionMap
Description copied from interface:BoundRequestGet the current session map.
A
BoundRequestmay be backed by a data store that only creates sessions on demand. It is recommended that if the session is not created on demand, or that the session has already been created (but is not required by this access) that the session is returned as it allows the conversation context to work more efficiently.- Specified by:
getSessionMapin interfaceBoundRequest- Parameters:
create- if true, then a session must be created- Returns:
- the session map; null may be returned if create is false
-