public class MutableBoundRequest extends java.lang.Object implements BoundRequest
BoundRequest backed by a pair of maps.| Constructor and Description |
|---|
MutableBoundRequest(java.util.Map<java.lang.String,java.lang.Object> requestMap,
java.util.Map<java.lang.String,java.lang.Object> sessionMap) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getRequestMap()
Get the current request map.
|
java.util.Map<java.lang.String,java.lang.Object> |
getSessionMap(boolean create)
Get the current session map.
|
public MutableBoundRequest(java.util.Map<java.lang.String,java.lang.Object> requestMap,
java.util.Map<java.lang.String,java.lang.Object> sessionMap)
public java.util.Map<java.lang.String,java.lang.Object> getRequestMap()
BoundRequestgetRequestMap in interface BoundRequestpublic java.util.Map<java.lang.String,java.lang.Object> getSessionMap(boolean create)
BoundRequestGet 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.
getSessionMap in interface BoundRequestcreate - if true, then a session must be createdCopyright © 2014. All Rights Reserved.