Package org.jboss.weld.context.bound
Interface BoundRequest
-
- All Known Implementing Classes:
MutableBoundRequest
public interface BoundRequest
A conversation is used to span multiple requests, however is shorter than a session. The
BoundConversationContext
uses one Map to represent a request, and a second to represent the session, which are encapsulated in aBoundRequest
.- Author:
- Pete Muir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Object>
getRequestMap()
Get the current request map.Map<String,Object>
getSessionMap(boolean create)
Get the current session map.
-
-
-
Method Detail
-
getRequestMap
Map<String,Object> getRequestMap()
Get the current request map.- Returns:
- the request map.
-
getSessionMap
Map<String,Object> getSessionMap(boolean create)
Get the current session map.
A
BoundRequest
may 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.- Parameters:
create
- if true, then a session must be created- Returns:
- the session map; null may be returned if create is false
-
-