public interface MBClientCmd
| Modifier and Type | Method and Description |
|---|---|
void |
appendUsage(StringBuilder out)
Append usage description of this command to the passed string builder.
|
default Message |
buildResponseMessage(HttpResponse response,
String defaultMessage)
This method is commonly used by implementations of this interface.
|
void |
execute()
Execution logic of the command.
|
void |
setSelfJCommander(com.beust.jcommander.JCommander jCommander)
Store the
JCommander instance related to this command itself. |
default Message buildResponseMessage(HttpResponse response, String defaultMessage)
Message 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.void execute()
void appendUsage(StringBuilder out)
out - StringBuilder instance, which messages should be appended to.void setSelfJCommander(com.beust.jcommander.JCommander jCommander)
JCommander instance related to this command itself. This can be used to print help statements,
on its child commands.jCommander - JCommander instance generated for this CommandCopyright © 2018 WSO2. All rights reserved.