public class ConnectHandler extends CommandHandlerWithHelp
helpArg
Constructor and Description |
---|
ConnectHandler() |
ConnectHandler(String command) |
Modifier and Type | Method and Description |
---|---|
protected void |
doHandle(CommandContext ctx) |
boolean |
hasArgument(CommandContext ctx,
int index)
Checks whether the command handler accepts an argument with the specified index.
|
protected void |
recognizeArguments(CommandContext ctx) |
handle, isAvailable, isBatchMode, printHelp, printList
addArgument, getArgument, getArguments, hasArgument
public ConnectHandler()
public ConnectHandler(String command)
public boolean hasArgument(CommandContext ctx, int index)
CommandHandler
hasArgument
in interface CommandHandler
hasArgument
in class CommandHandlerWithArguments
ctx
- the current contextindex
- argument index to checkprotected void recognizeArguments(CommandContext ctx) throws CommandFormatException
recognizeArguments
in class CommandHandlerWithArguments
CommandFormatException
protected void doHandle(CommandContext ctx) throws CommandLineException
doHandle
in class CommandHandlerWithHelp
CommandLineException
Copyright © 2023 JBoss by Red Hat. All rights reserved.