public class DeleteMessagesCmd extends DeleteCmd
ERR_STREAM, help, password, rootCommand, selfJCommander, verbose| Constructor and Description |
|---|
DeleteMessagesCmd(String rootCommand) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendUsage(StringBuilder out)
Append usage description of this command to the passed string builder.
|
Message |
buildResponseMessage(HttpResponse response,
String defaultMessage)
This method is commonly used by implementations of this interface.
|
void |
execute()
Execution logic of the command.
|
processHelpLogs, setSelfJCommanderpublic DeleteMessagesCmd(String rootCommand)
public void execute()
MBClientCmdexecute in interface MBClientCmdexecute in class DeleteCmdpublic Message buildResponseMessage(HttpResponse response, String defaultMessage)
MBClientCmdMessage instance with it. If response message payload is empty,
the new Message will contain the default message.response - httpResponse received from the Brokers REST backend.defaultMessage - default message to be set, in case of absence of the http message payload.Message instance.public void appendUsage(StringBuilder out)
MBClientCmdappendUsage in interface MBClientCmdappendUsage in class DeleteCmdout - StringBuilder instance, which messages should be appended to.Copyright © 2018 WSO2. All rights reserved.