You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2013/12/05 15:20:50 UTC

svn commit: r889237 - in /websites/production/camel/content: book-component-appendix.html book-in-one-page.html cache/main.pageCache ftp.html ftp2.html

Author: buildbot
Date: Thu Dec  5 14:20:50 2013
New Revision: 889237

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/book-component-appendix.html
    websites/production/camel/content/book-in-one-page.html
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/ftp.html
    websites/production/camel/content/ftp2.html

Modified: websites/production/camel/content/book-component-appendix.html
==============================================================================
--- websites/production/camel/content/book-component-appendix.html (original)
+++ websites/production/camel/content/book-component-appendix.html Thu Dec  5 14:20:50 2013
@@ -5451,6 +5451,17 @@ The reason is that we leverage Spring's 
 
 <p>You can also assign a user name and password to the proxy, if necessary. Please consult the documentation for <tt>com.jcraft.jsch.Proxy</tt> to discover all options.</p>
 
+<h3><a shape="rect" name="BookComponentAppendix-SettingpreferredSFTPauthenticationmethod"></a>Setting preferred SFTP authentication method</h3>
+
+<p>If you want to explicitly specify the list of authentication method that should be used by <tt>sftp</tt> component, use <tt>preferredAuthentications</tt> option. If for example you would like Camel to attempt to authenticate with private/public SSH key and fallback to user/password authentication in the case when no public key is available, use the following route configuration:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+from("sftp://localhost:9999/root?username=admin&amp;password=admin&amp;preferredAuthentications=publickey,password").
+  to("bean:processFile");
+]]></script>
+</div></div> 
+
 <h3><a shape="rect" name="BookComponentAppendix-Consumingasinglefileusingafixedname"></a>Consuming a single file using a fixed name</h3>
 
 <p>When you want to download a single file and knows the file name, you can use <tt>fileName=myFileName.txt</tt> to tell Camel the name of the file to download. By default the consumer will still do a FTP LIST command to do a directory listing and then filter these files based on the <tt>fileName</tt> option. Though in this use-case it may be desirable to turn off the directory listing by setting <tt>useList=false</tt>. For example the user account used to login to the FTP server may not have permission to do a FTP LIST command. So you can turn off this with <tt>useList=false</tt>, and then provide the fixed name of the file to download with <tt>fileName=myFileName.txt</tt>, then the FTP consumer can still download the file. If the file for some reason does not exist, then Camel will by default throw an exception, you can turn this off and ignore this by setting <tt>ignoreFileNotFoundOrPermissionError=true</tt>.</p>

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Thu Dec  5 14:20:50 2013
@@ -27048,6 +27048,17 @@ The reason is that we leverage Spring's 
 
 <p>You can also assign a user name and password to the proxy, if necessary. Please consult the documentation for <tt>com.jcraft.jsch.Proxy</tt> to discover all options.</p>
 
+<h3><a shape="rect" name="BookInOnePage-SettingpreferredSFTPauthenticationmethod"></a>Setting preferred SFTP authentication method</h3>
+
+<p>If you want to explicitly specify the list of authentication method that should be used by <tt>sftp</tt> component, use <tt>preferredAuthentications</tt> option. If for example you would like Camel to attempt to authenticate with private/public SSH key and fallback to user/password authentication in the case when no public key is available, use the following route configuration:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+from("sftp://localhost:9999/root?username=admin&amp;password=admin&amp;preferredAuthentications=publickey,password").
+  to("bean:processFile");
+]]></script>
+</div></div> 
+
 <h3><a shape="rect" name="BookInOnePage-Consumingasinglefileusingafixedname"></a>Consuming a single file using a fixed name</h3>
 
 <p>When you want to download a single file and knows the file name, you can use <tt>fileName=myFileName.txt</tt> to tell Camel the name of the file to download. By default the consumer will still do a FTP LIST command to do a directory listing and then filter these files based on the <tt>fileName</tt> option. Though in this use-case it may be desirable to turn off the directory listing by setting <tt>useList=false</tt>. For example the user account used to login to the FTP server may not have permission to do a FTP LIST command. So you can turn off this with <tt>useList=false</tt>, and then provide the fixed name of the file to download with <tt>fileName=myFileName.txt</tt>, then the FTP consumer can still download the file. If the file for some reason does not exist, then Camel will by default throw an exception, you can turn this off and ignore this by setting <tt>ignoreFileNotFoundOrPermissionError=true</tt>.</p>

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/ftp.html
==============================================================================
--- websites/production/camel/content/ftp.html (original)
+++ websites/production/camel/content/ftp.html Thu Dec  5 14:20:50 2013
@@ -560,6 +560,17 @@ The reason is that we leverage Spring's 
 
 <p>You can also assign a user name and password to the proxy, if necessary. Please consult the documentation for <tt>com.jcraft.jsch.Proxy</tt> to discover all options.</p>
 
+<h3><a shape="rect" name="FTP-SettingpreferredSFTPauthenticationmethod"></a>Setting preferred SFTP authentication method</h3>
+
+<p>If you want to explicitly specify the list of authentication method that should be used by <tt>sftp</tt> component, use <tt>preferredAuthentications</tt> option. If for example you would like Camel to attempt to authenticate with private/public SSH key and fallback to user/password authentication in the case when no public key is available, use the following route configuration:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+from("sftp://localhost:9999/root?username=admin&amp;password=admin&amp;preferredAuthentications=publickey,password").
+  to("bean:processFile");
+]]></script>
+</div></div> 
+
 <h3><a shape="rect" name="FTP-Consumingasinglefileusingafixedname"></a>Consuming a single file using a fixed name</h3>
 
 <p>When you want to download a single file and knows the file name, you can use <tt>fileName=myFileName.txt</tt> to tell Camel the name of the file to download. By default the consumer will still do a FTP LIST command to do a directory listing and then filter these files based on the <tt>fileName</tt> option. Though in this use-case it may be desirable to turn off the directory listing by setting <tt>useList=false</tt>. For example the user account used to login to the FTP server may not have permission to do a FTP LIST command. So you can turn off this with <tt>useList=false</tt>, and then provide the fixed name of the file to download with <tt>fileName=myFileName.txt</tt>, then the FTP consumer can still download the file. If the file for some reason does not exist, then Camel will by default throw an exception, you can turn this off and ignore this by setting <tt>ignoreFileNotFoundOrPermissionError=true</tt>.</p>

Modified: websites/production/camel/content/ftp2.html
==============================================================================
--- websites/production/camel/content/ftp2.html (original)
+++ websites/production/camel/content/ftp2.html Thu Dec  5 14:20:50 2013
@@ -559,6 +559,17 @@ The reason is that we leverage Spring's 
 
 <p>You can also assign a user name and password to the proxy, if necessary. Please consult the documentation for <tt>com.jcraft.jsch.Proxy</tt> to discover all options.</p>
 
+<h3><a shape="rect" name="FTP2-SettingpreferredSFTPauthenticationmethod"></a>Setting preferred SFTP authentication method</h3>
+
+<p>If you want to explicitly specify the list of authentication method that should be used by <tt>sftp</tt> component, use <tt>preferredAuthentications</tt> option. If for example you would like Camel to attempt to authenticate with private/public SSH key and fallback to user/password authentication in the case when no public key is available, use the following route configuration:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+from("sftp://localhost:9999/root?username=admin&amp;password=admin&amp;preferredAuthentications=publickey,password").
+  to("bean:processFile");
+]]></script>
+</div></div> 
+
 <h3><a shape="rect" name="FTP2-Consumingasinglefileusingafixedname"></a>Consuming a single file using a fixed name</h3>
 
 <p>When you want to download a single file and knows the file name, you can use <tt>fileName=myFileName.txt</tt> to tell Camel the name of the file to download. By default the consumer will still do a FTP LIST command to do a directory listing and then filter these files based on the <tt>fileName</tt> option. Though in this use-case it may be desirable to turn off the directory listing by setting <tt>useList=false</tt>. For example the user account used to login to the FTP server may not have permission to do a FTP LIST command. So you can turn off this with <tt>useList=false</tt>, and then provide the fixed name of the file to download with <tt>fileName=myFileName.txt</tt>, then the FTP consumer can still download the file. If the file for some reason does not exist, then Camel will by default throw an exception, you can turn this off and ignore this by setting <tt>ignoreFileNotFoundOrPermissionError=true</tt>.</p>