|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.policy.manager.MapRequestContext
public class MapRequestContext
Public implementation of RuleContext representing a generic Map Request.
This is used to set up data for the underlying rule engine. This Map represents KEYWORD/OBJECT
pairs that are understood by the rule engine. The OBJECT is the entity that is used to provide the data
that the RULE (represented by the KEYWORD) requires.
There is also an Id that will be used as the basis for caching this instance. The cache will search
for this Id, and if it exists, it will return the results that are cached. If the Id is different
on every invocation of the policy call, then the cached value will never be used.
Field Summary | |
---|---|
static java.lang.String |
UNIQUE_TARGET_IDENTIFIER
|
Constructor Summary | |
---|---|
MapRequestContext(java.util.Map<java.lang.String,? extends java.lang.Object> map)
Add a Rule context based on an Mapping of KEYWORD of rule with OBJECT . |
Method Summary | |
---|---|
java.util.Collection |
getContext()
Retrieve the collection of rules engine objects in this RuleContext. |
java.lang.String |
getId()
Retrieve a unique identifier for the session if one is available. |
java.lang.String |
setId(java.lang.String value)
Set the unique identifier after the fact. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String UNIQUE_TARGET_IDENTIFIER
Constructor Detail |
---|
public MapRequestContext(java.util.Map<java.lang.String,? extends java.lang.Object> map)
Map
- map to be usedMethod Detail |
---|
public java.util.Collection getContext()
RuleContext
An example implementation class named FooRuleContext, contains a single attribute named foo with a value of either:
getContext
in interface RuleContext
public java.lang.String getId()
RuleContext
getId
in interface RuleContext
public java.lang.String setId(java.lang.String value)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |