GetContext
Gets the value by the name in the "context" properties. Context properties include the following constants: account ID, account password, service name, service key, and request ID.
Syntax
public String getContext(String name)
Parameters
- Name - the name whose associated value is to be returned
Results
Returns the value associated with the name in the context properties. If the name does not exist, the method returns NULL.
Example
String value = message.getContext(Message.CONTEXT_ACCOUNT_ID);