public class ExecCommand extends AbstractAgiCommand
Executes an application with the given options.
Returns whatever the application returns, or -2 if the application was not found.
See: EXEC (Asterisk 18)
| Constructor and Description |
|---|
ExecCommand(String application) |
ExecCommand(String application,
String... options) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getApplication()
Returns the name of the application to execute.
|
String[] |
getOptions()
Returns the options to pass to the application.
|
void |
setApplication(String application)
Sets the name of the application to execute.
|
void |
setOptions(String... options)
Sets the options to pass to the application.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic ExecCommand(String application)
public String getApplication()
public void setApplication(String application)
application - the name of the application to execute.public String[] getOptions()
public void setOptions(String... options)
options - the options to pass to the application.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.