All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.asteriskjava.config.ExecDirective Maven / Gradle / Ivy

There is a newer version: 3.41.0
Show 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy