org.jboss.weld.context.bound
Class MutableBoundRequest

java.lang.Object
  extended by org.jboss.weld.context.bound.MutableBoundRequest
All Implemented Interfaces:
BoundRequest

public class MutableBoundRequest
extends Object
implements BoundRequest

An implementation of BoundRequest backed by a pair of maps.

Author:
Pete Muir

Constructor Summary
MutableBoundRequest(Map<String,Object> requestMap, Map<String,Object> sessionMap)
           
 
Method Summary
 Map<String,Object> getRequestMap()
          Get the current request map.
 Map<String,Object> getSessionMap(boolean create)
           Get the current session map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MutableBoundRequest

public MutableBoundRequest(Map<String,Object> requestMap,
                           Map<String,Object> sessionMap)
Method Detail

getRequestMap

public Map<String,Object> getRequestMap()
Description copied from interface: BoundRequest
Get the current request map.

Specified by:
getRequestMap in interface BoundRequest
Returns:

getSessionMap

public Map<String,Object> getSessionMap(boolean create)
Description copied from interface: BoundRequest

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.

Specified by:
getSessionMap in interface BoundRequest
Parameters:
create - if true, then a session must be created
Returns:
the session map; null may be returned if create is false


Copyright © 2013 Seam Framework. All Rights Reserved.