org.nees.util.sessions
Class FilterInterpreter

java.lang.Object
  extended byorg.nees.util.sessions.FilterInterpreter
All Implemented Interfaces:
Interpreter

public class FilterInterpreter
extends java.lang.Object
implements Interpreter

This interpreter pre- and post-processes commands and results using a Filter and a delegate interpreter

See Also:
Filter

Constructor Summary
FilterInterpreter(Filter filter, Interpreter interpreter)
           
 
Method Summary
 Result[] executeCommands(Command[] c)
          Execute the commands, first pre-processing them and then post-processing the results using the filter.
protected  void setFilter(Filter f)
           
protected  void setInterpreter(Interpreter i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterInterpreter

public FilterInterpreter(Filter filter,
                         Interpreter interpreter)
Parameters:
filter - the filter to use to process the commands/results
interpreter - the interpreter to use to execute the pre-processed commands
Method Detail

setFilter

protected void setFilter(Filter f)

setInterpreter

protected void setInterpreter(Interpreter i)

executeCommands

public final Result[] executeCommands(Command[] c)
Execute the commands, first pre-processing them and then post-processing the results using the filter.

Specified by:
executeCommands in interface Interpreter
Parameters:
c - the commands
Returns:
the post-processed results