protected class ScriptEngineMappingStrategy.ScriptEngineAgiScript extends Object implements NamedAgiScript
| Constructor and Description |
|---|
ScriptEngineAgiScript(File file,
ScriptEngine scriptEngine)
Creates a new ScriptEngineAgiScript.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the script.
|
void |
service(AgiRequest request,
AgiChannel channel)
The service method is called by the AsteriskServer whenever this
AgiScript should handle an incoming AgiRequest.
|
public ScriptEngineAgiScript(File file, ScriptEngine scriptEngine)
file - the file that contains the script to execute.scriptEngine - the ScriptEngine to use for executing the script.public String getName()
NamedAgiScriptgetName in interface NamedAgiScriptpublic void service(AgiRequest request, AgiChannel channel) throws AgiException
AgiScriptservice in interface AgiScriptrequest - the initial data received from Asterisk when requesting
this script.channel - a handle to communicate with Asterisk such as sending
commands to the channel sending the request.AgiException - any exception thrown by your script will be logged.Copyright © 2004–2020. All rights reserved.