setMethodIdentifier
setMethodIdentifier(métodoIdentificador)
El método setMethodIdentifier define el tipo de comando contenido en el objeto de comando.
*
métodoIdentificador: serie que contiene el tipo de comando.
Los valores válidos son:
*
COMMAND_ENDSESSION: representa el método endSession.
*
COMMAND_GETOFFERS: representa el método getOffers.
*
COMMAND_GETPROFILE: representa el método getProfile.
*
COMMAND_GETVERSION: representa el método getVersion.
*
COMMAND_POSTEVENT: representa el método postEvent.
*
COMMAND_SETAUDIENCE: representa el método setAudience.
*
COMMAND_SETDEBUG: representa el método setDebug.
*
COMMAND_STARTSESSION: representa el método startSession.
Valor de retorno
Ninguno.
Ejemplo
El ejemplo siguiente es un fragmento de un método executeBatch que llama a getVersion y endSession.
Command getVersionCommand = new CommandImpl();
getVersionCommand.setMethodIdentifier(Command.COMMAND_GETVERSION);

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

Command[] commands =
{
getVersionCommand,
endSessionCommand
};