Package adams.scripting.requesthandler
Interface RequestHandler
-
- All Known Implementing Classes:
AbstractRequestHandler
,CallableActorsHandler
,CommandDumperHandler
,LoggingHandler
,MultiHandler
,NullHandler
,SimpleLogPanelRequestHandler
public interface RequestHandler
Interface 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 RemoteScriptingEngine
getOwner()
Returns the owning engine.void
requestFailed(RemoteCommand cmd, String msg)
Handles failed requests.void
requestRejected(RemoteCommand cmd, String msg)
Handles rejected requests.void
requestSuccessful(RemoteCommand cmd)
Handles successfuly requests.void
setOwner(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
-
-