|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(org.apache.camel.Message message,
String headerName,
T defaultValue,
Class<T> headerType)
Gets and removes the |
|
ExecCommand |
readInput(org.apache.camel.Exchange exchange,
ExecEndpoint endpoint)
Creates a ExecCommand from the headers in the
exchange and the settings of the endpoint. |
|
void |
writeOutput(org.apache.camel.Exchange exchange,
ExecResult result)
Populates the exchange form the ExecResult. |
|
protected void |
writeOutputInMessage(org.apache.camel.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(org.apache.camel.Exchange exchange,
ExecEndpoint endpoint)
ExecBindingExecCommand from the headers in the
exchange and the settings of the endpoint.
readInput in interface ExecBindingexchange - a Camel Exchangeendpoint - an ExecEndpoint instance
ExecCommand objectExecCommandExecutor
public void writeOutput(org.apache.camel.Exchange exchange,
ExecResult result)
ExecBindingExecResult.
writeOutput in interface ExecBindingexchange - a Camel Exchange, in which to write the
resultresult - the result of a command executionExecCommandExecutor
protected void writeOutputInMessage(org.apache.camel.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 instance
protected <T> T getAndRemoveHeader(org.apache.camel.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 | |||||||||