public class IfsCatCommand extends IfsCommand
Command specification for IfsCatCommand
Inputs:
IfsCommand
Constructor and Description |
---|
IfsCatCommand()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CommandContext |
createCommandContext()
Returns a CommandContext to be used throughout the invocation.
|
protected void |
execute(CatContext context)
Execute a CatContext
|
protected void |
execute(CommandContext context)
Execute a CommandContext
|
protected void |
executeRenderAsReader(CatContext cc) |
protected void |
executeRenderAsStream(CatContext cc) |
protected IfsRenderAsReaderCommand |
getReaderCommand() |
protected IfsRenderAsStreamCommand |
getStreamCommand() |
void |
populateNestedCommands(CommandInvoker commandInvoker)
Populate all the needed nested commands.
|
postExecute, preExecute, run
public CommandContext createCommandContext() throws IfsException
createCommandContext
in interface Command
createCommandContext
in class IfsCommand
CommandContext
.IfsException
CommandContext
public void populateNestedCommands(CommandInvoker commandInvoker) throws IfsException
IfsCommand
CommandInvoker
is not guaranteed to exist for the lifetime of
the command. Therefore, the command should not keep a reference to the
command invoker and it should acquire all the references to the needed
commands in this call-back method.
populateNestedCommands
in interface Command
populateNestedCommands
in class IfsCommand
commandInvoker
- The CommandInvoker
object that can be
used to acquire references to the needed
sub-commands.IfsException
- If there is any exception thrown.CommandInvoker
protected void execute(CommandContext context) throws IfsException
execute
in class IfsCommand
context
- the command context.IfsException
- if execution failsprotected void execute(CatContext context) throws IfsException
context
- the command context.IfsException
- if execution failsprotected IfsRenderAsReaderCommand getReaderCommand() throws IfsException
IfsException
protected IfsRenderAsStreamCommand getStreamCommand() throws IfsException
IfsException
protected void executeRenderAsReader(CatContext cc) throws IfsException
IfsException
protected void executeRenderAsStream(CatContext cc) throws IfsException
IfsException
Copyright © 2023. All rights reserved.