public class InputAbstract extends ActionAbstract
context, verbose
Constructor and Description |
---|
InputAbstract() |
Modifier and Type | Method and Description |
---|---|
static void |
enableInput()
Test cases validating or using the CLI cannot deal with inputs,
so they are generally disabled, however the main method from the CLI will enable it back.
|
Object |
execute(ActionContext context) |
protected String |
input(String propertyName,
String prompt,
String silentDefault) |
protected String |
input(String propertyName,
String prompt,
String silentDefault,
boolean acceptNull) |
protected boolean |
inputBoolean(String propertyName,
String prompt,
boolean silentDefault) |
protected String |
inputPassword(String propertyName,
String prompt,
String silentDefault) |
boolean |
isSilentInput() |
void |
setSilentInput(boolean isSilent) |
checkOptions, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, isVerbose, setHomeValues
public static void enableInput()
public boolean isSilentInput()
public void setSilentInput(boolean isSilent)
protected boolean inputBoolean(String propertyName, String prompt, boolean silentDefault)
protected String input(String propertyName, String prompt, String silentDefault, boolean acceptNull)
protected String inputPassword(String propertyName, String prompt, String silentDefault)
public Object execute(ActionContext context) throws Exception
execute
in interface Action
execute
in class ActionAbstract
Exception
Copyright © 2021 JBoss by Red Hat. All rights reserved.