|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MappingStrategy
A MappingStrategy determines which AgiScript
is called to service a given AgiRequest
.
A MappingStrategy can use any of the properties of an AgiRequest to do this. However most MappingStrategies will just use the script property, that is the name of the invoked AGI script as passed from Asterisk's dialplan.
Asterisk-Java ships with several mapping strategies that are available out of the box. If you have some special requirements that are not satisfied by any of the available strategies feel free to implement this interface and use your own strategy.
Method Summary | |
---|---|
AgiScript |
determineScript(AgiRequest request)
Returns the AgiScript instance that is responsible to handle the given request. |
Method Detail |
---|
AgiScript determineScript(AgiRequest request)
request
- 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 |