setMethodIdentifier
setMethodIdentifier(methodIdentifier)
The setMethodIdentifier method defines the type of command contained in the command object.
*
methodIdentifier-a string containing the type of command.
The valid values are:
*
COMMAND_ENDSESSION-represents the endSession method.
*
COMMAND_GETOFFERS-represents the getOffers method.
*
COMMAND_GETPROFILE-represents the getProfile method.
*
COMMAND_GETVERSION-represents the getVersion method.
*
COMMAND_POSTEVENT-represents the postEvent method.
*
COMMAND_SETAUDIENCE-represents the setAudience method.
*
COMMAND_SETDEBUG-represents the setDebug method.
*
COMMAND_STARTSESSION-represents the startSession method.
Return value
None.
Example
The following example is an excerpt from an executeBatch method calling getVersion and endSession.
Command getVersionCommand = new CommandImpl();
getVersionCommand.setMethodIdentifier(Command.COMMAND_GETVERSION);

Command endSessionCommand = new CommandImpl();
endSessionCommand.setMethodIdentifier(Command.COMMAND_ENDSESSION);

Command[] commands =
{
getVersionCommand,
endSessionCommand
};