public abstract class CommandBase extends Object implements Command
| Modifier | Constructor and Description |
|---|---|
protected |
CommandBase(List<String> names) |
protected |
CommandBase(List<String> names,
boolean serverRequired) |
protected |
CommandBase(List<String> names,
boolean serverRequired,
AuthRequest authRequest) |
| Modifier and Type | Method and Description |
|---|---|
AuthRequest |
getAuthRequest() |
Set<String> |
getNames()
The set of all names that can be used to refer to this command (e.g.,
"configuration", "config", and "conf").
|
String |
getPrimaryName()
The name that is returned with the command response and that appears in
the list of all commands.
|
protected CommandResponse |
initializeResponse() |
boolean |
isServerRequired() |
protected CommandBase(List<String> names)
names - The possible names of this command, with the primary name first.protected CommandBase(List<String> names, boolean serverRequired, AuthRequest authRequest)
public String getPrimaryName()
CommandgetPrimaryName in interface Commandpublic Set<String> getNames()
Commandpublic boolean isServerRequired()
isServerRequired in interface Commandpublic AuthRequest getAuthRequest()
getAuthRequest in interface Commandprotected CommandResponse initializeResponse()
Copyright © 2008–2026 The Apache Software Foundation. All rights reserved.