Class ExecEndpointBuilderFactory.ExecHeaderNameBuilder
- java.lang.Object
-
- org.apache.camel.builder.endpoint.dsl.ExecEndpointBuilderFactory.ExecHeaderNameBuilder
-
- Enclosing interface:
- ExecEndpointBuilderFactory
public static class ExecEndpointBuilderFactory.ExecHeaderNameBuilder extends Object
The builder of headers' name for the Exec component.
-
-
Constructor Summary
Constructors Constructor Description ExecHeaderNameBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
execCommandArgs()
Command-line argument(s) to pass to the executed process.String
execCommandExecutable()
The name of the system command that will be executed.String
execCommandLogLevel()
Logging level to be used for commands during execution.String
execCommandOutFile()
The name of a file, created by the executable, that should be considered as its output.String
execCommandTimeout()
The timeout, in milliseconds, after which the executable should be terminated.String
execCommandWorkingDir()
The directory in which the command should be executed.String
execExitValue()
The value of this header is the _exit value_ of the executable.String
execExitValues()
The exit values for successful execution of the process.String
execStderr()
The value of this header points to the standard error stream (stderr) of the executable.String
execUseStderrOnEmptyStdout()
Indicates that when stdout is empty, this component will populate the Camel Message Body with stderr.
-
-
-
Method Detail
-
execCommandExecutable
public String execCommandExecutable()
The name of the system command that will be executed. Overrides executable in the URI. The option is a:String
type. Group: in- Returns:
- the name of the header
ExecCommandExecutable
.
-
execCommandArgs
public String execCommandArgs()
Command-line argument(s) to pass to the executed process. The argument(s) is/are used literally - no quoting is applied. Overrides any existing args in the URI. The option is a:java.util.List<String> or String
type. Group: in- Returns:
- the name of the header
ExecCommandArgs
.
-
execCommandOutFile
public String execCommandOutFile()
The name of a file, created by the executable, that should be considered as its output. Overrides any existing outFile in the URI. The option is a:String
type. Group: in- Returns:
- the name of the header
ExecCommandOutFile
.
-
execCommandWorkingDir
public String execCommandWorkingDir()
The directory in which the command should be executed. Overrides any existing workingDir in the URI. The option is a:String
type. Group: in- Returns:
- the name of the header
ExecCommandWorkingDir
.
-
execCommandTimeout
public String execCommandTimeout()
The timeout, in milliseconds, after which the executable should be terminated. Overrides any existing timeout in the URI. The option is a:long
type. Group: in- Returns:
- the name of the header
ExecCommandTimeout
.
-
execExitValues
public String execExitValues()
The exit values for successful execution of the process. Overrides any existing exitValues in the URI. The option is a:String
type. Group: in- Returns:
- the name of the header
ExecExitValues
.
-
execStderr
public String execStderr()
The value of this header points to the standard error stream (stderr) of the executable. If no stderr is written, the value is null. The option is a:java.io.InputStream
type. Group: out- Returns:
- the name of the header
ExecStderr
.
-
execExitValue
public String execExitValue()
The value of this header is the _exit value_ of the executable. Non-zero exit values typically indicate abnormal termination. Note that the exit value is OS-dependent. The option is a:int
type. Group: out- Returns:
- the name of the header
ExecExitValue
.
-
execUseStderrOnEmptyStdout
public String execUseStderrOnEmptyStdout()
Indicates that when stdout is empty, this component will populate the Camel Message Body with stderr. This behavior is disabled (false) by default. The option is a:boolean
type. Group: in- Returns:
- the name of the header
ExecUseStderrOnEmptyStdout
.
-
execCommandLogLevel
public String execCommandLogLevel()
Logging level to be used for commands during execution. The default value is DEBUG. Possible values are TRACE, DEBUG, INFO, WARN, ERROR or OFF (Values of LoggingLevel enum). The option is a:String
type. Group: in- Returns:
- the name of the header
ExecCommandLogLevel
.
-
-