|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.asteriskjava.fastagi.ScriptEngineMappingStrategy.ScriptEngineAgiScript
protected class ScriptEngineMappingStrategy.ScriptEngineAgiScript
| Constructor Summary | |
|---|---|
ScriptEngineMappingStrategy.ScriptEngineAgiScript(java.io.File file,
javax.script.ScriptEngine scriptEngine)
Creates a new ScriptEngineAgiScript. |
|
| Method Summary | |
|---|---|
java.lang.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScriptEngineMappingStrategy.ScriptEngineAgiScript(java.io.File file,
javax.script.ScriptEngine scriptEngine)
file - the file that contains the script to execute.scriptEngine - the ScriptEngine to use for executing the script.| Method Detail |
|---|
public java.lang.String getName()
NamedAgiScript
getName in interface NamedAgiScript
public void service(AgiRequest request,
AgiChannel channel)
throws AgiException
AgiScript
service 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.
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||