PutContext

Sets the value for the given name in the context properties. If there is an existing value present for the entity identified by the name, it is replaced. Context properties include the following constants: account ID, account password, service name, service key, and request ID.

Syntax

public void putContext(String name, String value) 

Parameters

  • Name - the name with which the specified value is to be associated
  • Value - the value to be associated with the specified name

Results

None.

Example

message.putContext(Message.CONTEXT_ACCOUNT_ID, "user1");