setMethodIdentifier
setMethodIdentifier(methodIdentifier)
La méthode setMethodIdentifier définit le type de commande contenue dans l'objet de commande.
*
methodIdentifier — Chaîne contenant le type de commande.
Valeurs admises :
*
COMMAND_ENDSESSION — Représente la méthode endSession.
*
COMMAND_GETOFFERS — Représente la méthode getOffers.
*
COMMAND_GETPROFILE — Représente la méthode getProfile.
*
COMMAND_GETVERSION — Représente la méthode getVersion.
*
COMMAND_POSTEVENT — Représente la méthode postEvent.
*
COMMAND_SETAUDIENCE — Représente la méthode setAudience.
*
COMMAND_SETDEBUG — Représente la méthode setDebug.
*
COMMAND_STARTSESSION — Représente la méthode startSession.
Valeur de retour
Aucune.
Exemple
L'exemple suivant est un extrait d'une méthode executeBatch appelant getVersion et endSession.
Command getVersionCommand = new CommandImpl();
getVersionCommand.setMethodIdentifier(Command.COMMAND_GETVERSION);

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

Command[] commands =
{
getVersionCommand,
endSessionCommand
};