TCommandHandler
TCommandHandler defines a Command Handler which consists of a handled command (p.e. "echo") and a validator and an executor function (compare General explaination).
Available functionality (users)
Available functionality (developers)
No developer functionality available.
Create
constructor Create(AHandledCommand: String; AValidator: TCommandHandlerValidatorFunction; AnExecutor: TCommandHandlerExecutorFunction);
Creates an instance of TCommandHandler.
GetHandledCommand
function GetHandledCommand: String;
Returns the command the Command Handler can deal with.
Execute
function Execute(AParameterList: TStringArray): THandlerResult;
Executes the handled command with the given parameters after validating and returns an error code and/or additional data.