|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.component.exec.impl.DefaultExecBinding
public class DefaultExecBinding
Default implementation of ExecBinding
.
writeOutputInMessage(Message, ExecResult)
Field Summary |
---|
Fields inherited from interface org.apache.camel.component.exec.ExecBinding |
---|
EXEC_COMMAND_ARGS, EXEC_COMMAND_EXECUTABLE, EXEC_COMMAND_OUT_FILE, EXEC_COMMAND_TIMEOUT, EXEC_COMMAND_WORKING_DIR, EXEC_EXIT_VALUE, EXEC_STDERR, EXEC_USE_STDERR_ON_EMPTY_STDOUT |
Constructor Summary | |
---|---|
DefaultExecBinding()
|
Method Summary | ||
---|---|---|
protected
|
getAndRemoveHeader(Message message,
String headerName,
T defaultValue,
Class<T> headerType)
Gets and removes the |
|
ExecCommand |
readInput(Exchange exchange,
ExecEndpoint endpoint)
Creates a ExecCommand from the headers in the
exchange and the settings of the endpoint . |
|
void |
writeOutput(Exchange exchange,
ExecResult result)
Populates the exchange form the ExecResult . |
|
protected void |
writeOutputInMessage(Message message,
ExecResult result)
Write the ExecResult in the message body. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExecBinding()
Method Detail |
---|
public ExecCommand readInput(Exchange exchange, ExecEndpoint endpoint)
ExecBinding
ExecCommand
from the headers in the
exchange
and the settings of the endpoint
.
readInput
in interface ExecBinding
exchange
- a Camel Exchange
endpoint
- an ExecEndpoint
instance
ExecCommand
objectExecCommandExecutor
public void writeOutput(Exchange exchange, ExecResult result)
ExecBinding
ExecResult
.
writeOutput
in interface ExecBinding
exchange
- a Camel Exchange
, in which to write the
result
result
- the result of a command executionExecCommandExecutor
protected void writeOutputInMessage(Message message, ExecResult result)
ExecResult
in the message body. Write the stderr and
the exit value for convenience in the message headers.
message
- a Camel messageresult
- an ExecResult
instanceprotected <T> T getAndRemoveHeader(Message message, String headerName, T defaultValue, Class<T> headerType)
headerName
header form the input
message
(the header will not be propagated)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |