public class ResourceCompositeOperationHandler extends BaseOperationCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
idProperty |
protected ArgumentWithValue |
name |
protected ArgumentWithValue |
profile |
accessRequirement, headers, params, requiredAddresshelpArg| Constructor and Description |
|---|
ResourceCompositeOperationHandler(CommandContext ctx,
String command,
String nodeType,
String idProperty,
String... operations) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValueCompleter(String propertyName,
CommandLineCompleter completer) |
void |
addValueConverter(String propertyName,
ArgumentValueConverter converter) |
protected org.jboss.dmr.ModelNode |
buildOperationAddress(CommandContext ctx) |
protected org.jboss.dmr.ModelNode |
buildRequestWithoutHeaders(CommandContext ctx) |
protected Map<String,CommandArgument> |
getAllArguments(CommandContext ctx) |
CommandArgument |
getArgument(CommandContext ctx,
String name)
Returns command argument declared by the command handler
corresponding to the argument name.
|
Collection<CommandArgument> |
getArguments(CommandContext ctx)
Returns a collection of the command arguments the handler supports in the current context.
|
protected Map<String,ArgumentWithValue> |
getOperationArguments(CommandContext ctx,
String opName) |
protected org.jboss.dmr.ModelNode |
getOperationDescription(CommandContext ctx,
String operationName) |
protected org.jboss.dmr.ModelNode |
initRequest(CommandContext ctx) |
protected Map<String,CommandArgument> |
loadArguments(CommandContext ctx) |
protected void |
recognizeArguments(CommandContext ctx) |
addArgument, addHeaders, addRequiredPath, addRequiredPath, buildRequest, buildRequestWOValidation, cliEvent, displayResponseHeaders, doHandle, getRequiredAddress, getRequiredType, handleResponse, isAddressValid, isAvailable, isDependsOnProfile, setParams, setupAccessRequirementhandle, isBatchMode, printHelp, printListhasArgument, hasArgumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandle, hasArgument, hasArgument, isBatchModeprotected final String idProperty
protected final ArgumentWithValue name
protected final ArgumentWithValue profile
public ResourceCompositeOperationHandler(CommandContext ctx, String command, String nodeType, String idProperty, String... operations)
public void addValueConverter(String propertyName, ArgumentValueConverter converter)
public void addValueCompleter(String propertyName, CommandLineCompleter completer)
protected org.jboss.dmr.ModelNode buildRequestWithoutHeaders(CommandContext ctx) throws CommandFormatException
buildRequestWithoutHeaders in class BaseOperationCommandCommandFormatExceptionprotected org.jboss.dmr.ModelNode buildOperationAddress(CommandContext ctx) throws CommandFormatException
CommandFormatExceptionpublic CommandArgument getArgument(CommandContext ctx, String name)
CommandHandlergetArgument in interface CommandHandlergetArgument in class CommandHandlerWithArgumentsctx - the current contextname - the name of the argumentpublic Collection<CommandArgument> getArguments(CommandContext ctx)
CommandHandlergetArguments in interface CommandHandlergetArguments in class CommandHandlerWithArgumentsctx - current command line contextprotected void recognizeArguments(CommandContext ctx) throws CommandFormatException
recognizeArguments in class CommandHandlerWithArgumentsCommandFormatExceptionprotected Map<String,CommandArgument> getAllArguments(CommandContext ctx)
protected Map<String,CommandArgument> loadArguments(CommandContext ctx)
protected Map<String,ArgumentWithValue> getOperationArguments(CommandContext ctx, String opName) throws CommandLineException
CommandLineExceptionprotected org.jboss.dmr.ModelNode getOperationDescription(CommandContext ctx, String operationName) throws CommandLineException
CommandLineExceptionprotected org.jboss.dmr.ModelNode initRequest(CommandContext ctx) throws CommandLineException
CommandLineExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.