public class ChainedCommandFilter extends java.lang.Object implements CommandFilter
| Constructor and Description |
|---|
ChainedCommandFilter()
Construct an empty ChainedCommandFilter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(CommandFilter filter)
Add a CommandFilter to the chain.
|
void |
filter(java.util.Collection<Command> commands,
KernelState state)
Filter a set of agent commands.
|
void |
initialise(Config config)
Initialise this filter.
|
void |
removeFilter(CommandFilter filter)
Remove a CommandFilter from the chain.
|
public ChainedCommandFilter()
public void addFilter(CommandFilter filter)
filter - The filter to add.public void removeFilter(CommandFilter filter)
filter - The filter to remove.public void initialise(Config config)
CommandFilterinitialise in interface CommandFilterconfig - The kernel configuration.public void filter(java.util.Collection<Command> commands, KernelState state)
CommandFilterfilter in interface CommandFiltercommands - The commands to filter. This collection should be modified to remove any illegal commands.state - The state of the kernel.