GitHub user cerker opened a pull request:
https://github.com/apache/camel/pull/16
Camel 6137 Send siteCommand(s) without uploading files
CAMEL-6137
==========
Part 1
------
- Added a new option "upload" to the producer which works according to
option "download" in the FTP consumer: If false, no file will be uploaded, no
temporary file will be created, no done file will be created, but the
Exchange.FILE_NAME_PRODUCED header will be set. Defaults to true.
- Since I wanted the "upload" option to work similar as the "download"
option, I added an isUploadFile() method to the GenericFileProducer in
camel-core. This is the only change in camel-core.
Part 2
------
- Added a new option "siteCommandCapture" to the RemoteFileConfiguration:
if true, the output of the site commands will be returned in the exchange's
body as a List<String> with the output of each executed site command as a list
element in order of execution. If false, the body remains untouched. Defaults
to false.
The default behaviour remains as before.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cerker/camel CAMEL-6137
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/16.patch
----
commit bc4b77d5e6bf87053cb228fef57c038db6d28e24
Author: Carsten Erker <[email protected]>
Date: 2013-03-20T14:39:41Z
CAMEL-6137: Added a new option "upload" to the producer which works
according to option "download" in the FTP consumer: If false, no file will be
uploaded, no temporary file will be created, no done file will be created, but
the Exchange.FILE_NAME_PRODUCED header will be set. Defaults to true.
commit 312f536920f9676042feadcfa3d081e9f82b942d
Author: Carsten Erker <[email protected]>
Date: 2013-03-21T16:57:34Z
CAMEL-6137: Added a new option "siteCommandCapture" to the
RemoteFileConfiguration: if true, the output of the site commands will be
returned in the exchange's body as a List<String> with the output of each
executed site command as a list element in order of execution. If false, the
body remains untouched. Defaults to false.
commit 84f10cf3a5a17e7bc82c4143825e0e6054c5f3de
Author: Carsten Erker <[email protected]>
Date: 2013-03-21T17:11:27Z
CAMEL-6137: Send site commands also when consuming; in this case without
capturing output.
commit facfeb38b14764d1496a5f1ba9bb184086e9a63f
Author: Carsten Erker <[email protected]>
Date: 2013-03-21T17:32:29Z
CAMEL-6137: sendSiteCommand() should do nothing
----