|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.asteriskjava.fastagi.StaticMappingStrategy
public class StaticMappingStrategy
Mapping strategy that maps all requests to the same script instance.
| Constructor Summary | |
|---|---|
StaticMappingStrategy()
|
|
StaticMappingStrategy(AgiScript agiScript)
Creates a new StaticMappingStrategy that maps all requests to the given script. |
|
| Method Summary | |
|---|---|
AgiScript |
determineScript(AgiRequest request)
Returns the AgiScript instance that is responsible to handle the given request. |
void |
setAgiScript(AgiScript agiScript)
Sets the AgiScript to map to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StaticMappingStrategy()
public StaticMappingStrategy(AgiScript agiScript)
agiScript - the script to map to.| Method Detail |
|---|
public void setAgiScript(AgiScript agiScript)
agiScript - the AgiScript to map to.public AgiScript determineScript(AgiRequest request)
MappingStrategy
determineScript in interface MappingStrategyrequest - the request to lookup.
null if none could be determined by this strategy.
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||