com.ibm.wps.policy.services
Class MapRequestContext
java.lang.Object
com.ibm.wps.policy.services.MapRequestContext
public class MapRequestContext
- extends java.lang.Object
Public implementation of RuleContext representing a request. Accepted request
types are Map. Only one request
is maintained and retrieved
per instance
- Since:
- 6.0
Constructor Summary |
MapRequestContext(java.util.Map map)
Add a Rule context based on an HttpServletRequest.
|
Method Summary |
java.util.Collection
| getContext()
|
java.lang.String
| getId()
|
java.lang.String
| setId(java.lang.String value)
Set the unique identifier after the fact.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
|
UNIQUE_TARGET_IDENTIFIER
public static final java.lang.String UNIQUE_TARGET_IDENTIFIER
- See Also:
- Constant Field Values
MapRequestContext
public MapRequestContext(java.util.Map map)
- Add a Rule context based on an HttpServletRequest.
- Parameters:
- request - HttpServletRequest to be used
getContext
public java.util.Collection getContext()
- Returns:
- Collection of rule objects to be used in the execution of a rule
getId
public java.lang.String getId()
- Returns:
- the _uniqueTargetIdentifier_ that was passed in with the Map
or that was set later, if one is available, and null otherwise.
setId
public java.lang.String setId(java.lang.String value)
- Set the unique identifier after the fact.
Returns the old value of the unique identifier.
Not part of RequestContext interface, just used for this class.