se.entra.phantom.server.rapp
Interface CallClassInterface


public interface CallClassInterface

This interface must be implemented by all CallClass actions running on the server.

Each time the CallClass action is about to start, a new instance of the class (that implements this interface) is created and called with the method runAction.

See Also:
RAPPCallClass, DefaultRemoteApplication, RequestThread

Method Summary
 boolean runAction(DefaultRemoteApplication app, RequestThread requestThread, RAPPCallClass action)
          Runs the CallClass action.
 

Method Detail

runAction

boolean runAction(DefaultRemoteApplication app,
                  RequestThread requestThread,
                  RAPPCallClass action)
Runs the CallClass action.

The return value is a success flag. A failure indicates that the script must be halted after this action.

The action has to set it's own error code in the class and eventually also log the error/warning in the server log.

Returns:
true for success, false for failure.
See Also:
RequestThread.setReply(java.lang.String), RequestThread.setError(java.lang.String)


Phantom® and NetPhantom® are registered trademarks of Codectica Systems SARL.
© Copyright Codectica Systems SARL, 2008. All rights reserved.