public class StaticMappingStrategy extends Object implements MappingStrategy
| Constructor and Description |
|---|
StaticMappingStrategy() |
StaticMappingStrategy(AgiScript agiScript)
Creates a new StaticMappingStrategy that maps all requests to the given script.
|
| Modifier and Type | Method and Description |
|---|---|
AgiScript |
determineScript(AgiRequest request,
AgiChannel channel)
Returns the AgiScript instance that is responsible to handle
the given request.
|
void |
setAgiScript(AgiScript agiScript)
Sets the AgiScript to map to.
|
public StaticMappingStrategy()
public StaticMappingStrategy(AgiScript agiScript)
agiScript - the script to map to.public void setAgiScript(AgiScript agiScript)
agiScript - the AgiScript to map to.public AgiScript determineScript(AgiRequest request, AgiChannel channel)
MappingStrategydetermineScript in interface MappingStrategyrequest - the request to lookup.channel - the channel.null if none could be determined by this strategy.Copyright © 2004–2021. All rights reserved.