|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.fastagi.command.AGICommand net.sf.asterisk.fastagi.command.ExecCommand
public class ExecCommand
Executes an application with the given options.
Returns whatever the application returns, or -2 if the application was not
found.
Constructor Summary | |
---|---|
ExecCommand(java.lang.String application)
Creates a new ExecCommand. |
|
ExecCommand(java.lang.String application,
java.lang.String options)
Creates a new ExecCommand. |
Method Summary | |
---|---|
java.lang.String |
buildCommand()
Returns a string suitable to be sent to asterisk. |
java.lang.String |
getApplication()
Returns the name of the application to execute. |
java.lang.String |
getOptions()
Returns the options to pass to the application. |
void |
setApplication(java.lang.String application)
Sets the name of the application to execute. |
void |
setOptions(java.lang.String options)
Sets the options to pass to the application. |
Methods inherited from class net.sf.asterisk.fastagi.command.AGICommand |
---|
escapeAndQuote, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExecCommand(java.lang.String application)
application
- the name of the application to execute.public ExecCommand(java.lang.String application, java.lang.String options)
application
- the name of the application to execute.options
- the options to pass to the application.Method Detail |
---|
public java.lang.String getApplication()
public void setApplication(java.lang.String application)
application
- the name of the application to execute.public java.lang.String getOptions()
public void setOptions(java.lang.String options)
options
- the options to pass to the application.public java.lang.String buildCommand()
AGICommand
buildCommand
in class AGICommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |