public class Context
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SERVICE_APPID |
static java.lang.String |
SERVICE_HOST_NAME |
static java.lang.String |
SERVICE_LOCAL |
static java.lang.String |
SERVICE_PORT |
static java.lang.String |
SERVICE_PROTOCOL |
static java.lang.String |
SERVICE_REMOTE_ADDRESS |
static java.lang.String |
SERVICE_REMOTE_HOST |
static java.lang.String |
SERVICE_SESSION |
static java.lang.String |
SERVICE_USER_NAME |
static java.lang.String |
SERVICE_USER_PASSWORD |
| Constructor and Description |
|---|
Context()
Class constructor.
|
Context(Context context)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all of the mappings from this context.
|
java.lang.Object |
get(java.lang.String key)
Returns the value to which the specified key is mapped, or null if this context contains no mapping for the key.
|
boolean |
getDisableAllTriggers()
Returns whether all triggers are disabled or not.
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
Associates the specified value with the specified key in this context.
|
void |
setDisableAllTriggers(boolean value)
Sets whether disables (or enables) all triggers.
|
public static final java.lang.String SERVICE_HOST_NAME
public static final java.lang.String SERVICE_USER_NAME
public static final java.lang.String SERVICE_USER_PASSWORD
public static final java.lang.String SERVICE_PORT
public static final java.lang.String SERVICE_SESSION
public static final java.lang.String SERVICE_APPID
public static final java.lang.String SERVICE_REMOTE_HOST
public static final java.lang.String SERVICE_REMOTE_ADDRESS
public static final java.lang.String SERVICE_LOCAL
public static final java.lang.String SERVICE_PROTOCOL
public Context()
public Context(Context context)
public java.lang.Object get(java.lang.String key)
key - the key whose associated value is to be returnedpublic java.lang.Object put(java.lang.String key,
java.lang.Object value)
key - the key with which the specified value is to be associatedvalue - the value to be associated with the specified keypublic void clear()
public boolean getDisableAllTriggers()
public void setDisableAllTriggers(boolean value)
Sets whether disables (or enables) all triggers.
Example:// Disable all triggers within a trigger event action event.getContext().setDisableAllTriggers(true); ... // Enable all triggers event.getContext().setDisableAllTriggers(false);
value - true to disable all triggers, otherwise false
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.