public class ClassNameMappingStrategy extends AbstractMappingStrategy
To use this ClassNameMappingStrategy the calls to your
AgiScript in
your dialplan should look like this:
exten => 123,1,AGI(agi://your.server.com/com.example.agi.MyScript)Where com.example.agi.MyScript is the fully qualified name of your AgiScript.
logger| Constructor and Description |
|---|
ClassNameMappingStrategy()
Creates a new ClassNameMappingStrategy using shared instances.
|
ClassNameMappingStrategy(boolean shareInstances)
Creates a new ClassNameMappingStrategy indicating whether to use shared
instances or not.
|
| Modifier and Type | Method and Description |
|---|---|
AgiScript |
determineScript(AgiRequest request) |
void |
setShareInstances(boolean shareInstances)
Sets whether to use shared instances or not.
|
createAgiScriptInstance, determineScript, getClassLoadergetDumpRateLimit, withLockpublic ClassNameMappingStrategy()
public ClassNameMappingStrategy(boolean shareInstances)
shareInstances - true to use shared instances,
false to create a new instance for
each request.public void setShareInstances(boolean shareInstances)
true
all AGIRequests are served by the same instance of an
AGIScript, if set to false a new instance is created for
each request.
Default is true.
shareInstances - true to use shared instances,
false to create a new instance for
each request.public AgiScript determineScript(AgiRequest request)
determineScript in class AbstractMappingStrategyCopyright © 2004–2021. All rights reserved.