|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.asteriskjava.fastagi.AbstractAgiServer
org.asteriskjava.fastagi.AsyncAgiServer
public class AsyncAgiServer
AGI server for AGI over the Manager API (AsyncAGI).
AsyncAGI is available since Asterisk 1.6.
| Constructor Summary | |
|---|---|
AsyncAgiServer()
Creates a new AsyncAgiServer. |
|
AsyncAgiServer(AgiScript agiScript)
Creates a new AsyncAgiServer that will execute the given AGI script for every request. |
|
AsyncAgiServer(MappingStrategy mappingStrategy)
Creates a new AsyncAgiServer with the given MappingStrategy. |
|
| Method Summary | |
|---|---|
void |
onManagerEvent(ManagerEvent event)
This method is called when an event is received. |
| Methods inherited from class org.asteriskjava.fastagi.AbstractAgiServer |
|---|
createPool, execute, finalize, getMappingStrategy, isDie, setMappingStrategy, setMaximumPoolSize, setPoolSize, shutdown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsyncAgiServer()
Note that you must set a MappingStrategy before using it.
AbstractAgiServer.setMappingStrategy(MappingStrategy)public AsyncAgiServer(MappingStrategy mappingStrategy)
Please note that Async AGI does not currently support passing a script name, so your
MappingStrategy must be aware that the script
property of the AgiRequests will likely be null.
mappingStrategy - the MappingStrategy to use to determine which AGI script to run
for a certain request.public AsyncAgiServer(AgiScript agiScript)
Internally this constructor uses a StaticMappingStrategy.
agiScript - the AGI script to execute.| Method Detail |
|---|
public void onManagerEvent(ManagerEvent event)
ManagerEventListener
onManagerEvent in interface ManagerEventListenerevent - the event that has been received
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||