Class ExecEndpointBuilderFactory.ExecHeaderNameBuilder
java.lang.Object
org.apache.camel.builder.endpoint.dsl.ExecEndpointBuilderFactory.ExecHeaderNameBuilder
- Enclosing interface:
- ExecEndpointBuilderFactory
The builder of headers' name for the Exec component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCommand-line argument(s) to pass to the executed process.The name of the system command that will be executed.Logging level to be used for commands during execution.The name of a file, created by the executable, that should be considered as its output.The timeout, in milliseconds, after which the executable should be terminated.The directory in which the command should be executed.The value of this header is the _exit value_ of the executable.The exit values for successful execution of the process.The value of this header points to the standard error stream (stderr) of the executable.Indicates that when stdout is empty, this component will populate the Camel Message Body with stderr.
-
Constructor Details
-
ExecHeaderNameBuilder
public ExecHeaderNameBuilder()
-
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
.
-