Package adams.scripting.requesthandler
Interface RequestHandler
-
- All Known Implementing Classes:
AbstractRequestHandler,CallableActorsHandler,CommandDumperHandler,LoggingHandler,MultiHandler,NullHandler,SimpleLogPanelRequestHandler
public interface RequestHandlerInterface for request handlers.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RemoteScriptingEnginegetOwner()Returns the owning engine.voidrequestFailed(RemoteCommand cmd, String msg)Handles failed requests.voidrequestRejected(RemoteCommand cmd, String msg)Handles rejected requests.voidrequestSuccessful(RemoteCommand cmd)Handles successfuly requests.voidsetOwner(RemoteScriptingEngine value)Sets the owning engine.
-
-
-
Method Detail
-
setOwner
void setOwner(RemoteScriptingEngine value)
Sets the owning engine.- Parameters:
value- the owner
-
getOwner
RemoteScriptingEngine getOwner()
Returns the owning engine.- Returns:
- the owner, null if none set
-
requestSuccessful
void requestSuccessful(RemoteCommand cmd)
Handles successfuly requests.- Parameters:
cmd- the command with the request
-
requestFailed
void requestFailed(RemoteCommand cmd, String msg)
Handles failed requests.- Parameters:
cmd- the command with the requestmsg- the optional error message, can be null
-
requestRejected
void requestRejected(RemoteCommand cmd, String msg)
Handles rejected requests.- Parameters:
cmd- the command with the requestmsg- the optional error message, can be null
-
-