public class ResourceCompositeOperationHandler extends BaseOperationCommand
Modifier and Type | Field and Description |
---|---|
protected String |
idProperty |
protected ArgumentWithValue |
name |
protected ArgumentWithValue |
profile |
accessRequirement, headers, params, requiredAddress
helpArg
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, handleAttachedFile, handleResponse, handleResponse, isAddressValid, isAvailable, isDependsOnProfile, setParams, setupAccessRequirement
handle, isBatchMode, printHelp, printList
hasArgument, hasArgument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handle, hasArgument, hasArgument, isBatchMode
protected 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 BaseOperationCommand
CommandFormatException
protected org.jboss.dmr.ModelNode buildOperationAddress(CommandContext ctx) throws CommandFormatException
CommandFormatException
public CommandArgument getArgument(CommandContext ctx, String name)
CommandHandler
getArgument
in interface CommandHandler
getArgument
in class CommandHandlerWithArguments
ctx
- the current contextname
- the name of the argumentpublic Collection<CommandArgument> getArguments(CommandContext ctx)
CommandHandler
getArguments
in interface CommandHandler
getArguments
in class CommandHandlerWithArguments
ctx
- current command line contextprotected void recognizeArguments(CommandContext ctx) throws CommandFormatException
recognizeArguments
in class CommandHandlerWithArguments
CommandFormatException
protected Map<String,CommandArgument> getAllArguments(CommandContext ctx)
protected Map<String,CommandArgument> loadArguments(CommandContext ctx)
protected Map<String,ArgumentWithValue> getOperationArguments(CommandContext ctx, String opName) throws CommandLineException
CommandLineException
protected org.jboss.dmr.ModelNode getOperationDescription(CommandContext ctx, String operationName) throws CommandLineException
CommandLineException
protected org.jboss.dmr.ModelNode initRequest(CommandContext ctx) throws CommandLineException
CommandLineException
Copyright © 2023 JBoss by Red Hat. All rights reserved.