|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.util.sessions.FilterSession
Extend this class to provide a session that pre- and post- processes the commands and results results sent to and from another, delegate session.
| Constructor Summary | |
FilterSession(Session s)
|
|
| Method Summary | |
void |
close()
Release resources used by this session. |
Interpreter |
getInterpreter()
Returns an interpreter that pre-processes commands before executing them, and post-processes the results before returning them. |
void |
open()
Acquire resources required by this session. |
Result[] |
postProcess(Result[] r)
Implement this method to post-process results after they are returned from the delegate session's interpreter. |
Command[] |
preProcess(Command[] c)
Implement this method to pre-process commands before they are sent to the delegate session's interpreter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FilterSession(Session s)
s - the delegate session which will execute commands after
pre-processing, and whose results will be post-processed.| Method Detail |
public void open()
throws SessionException
Session
open in interface SessionSessionException
public void close()
throws SessionException
Session
close in interface SessionSessionExceptionpublic Interpreter getInterpreter()
getInterpreter in interface Sessionpublic Command[] preProcess(Command[] c)
preProcess in interface Filterc - the commands to pre-process
public Result[] postProcess(Result[] r)
postProcess in interface Filterr - the results to post-process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||