org.asteriskjava.config.ExecDirective Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asterisk-java Show documentation
Show all versions of asterisk-java Show documentation
The free Java library for Asterisk PBX integration.
The newest version!
package org.asteriskjava.config;
public class ExecDirective extends ConfigDirective {
/**
* file name of the executable.
*/
private final String execFile;
public ExecDirective(String execFile) {
super();
this.execFile = execFile;
}
public ExecDirective(String filename, int lineno, String execFile) {
super(filename, lineno);
this.execFile = execFile;
}
public String getExecFile() {
return execFile;
}
@Override
protected StringBuilder rawFormat(StringBuilder sb) {
sb.append("#exec \"").append(execFile).append("\"");
return sb;
}
}