Author: buildbot
Date: Wed May 25 08:19:24 2016
New Revision: 989094

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/camel-2180-release.html
    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 Wed May 25 
08:19:24 2016
@@ -1017,11 +1017,11 @@ template.send("direct:alias-verify&
 ]]></script>
 </div></div><p></p><h3 id="BookComponentAppendix-SeeAlso.8">See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html">Configuring 
Camel</a></li><li><a shape="rect" 
href="component.html">Component</a></li><li><a shape="rect" 
href="endpoint.html">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li></ul><ul><li><a 
shape="rect" href="crypto.html">Crypto</a> Crypto is also available as a <a 
shape="rect" href="data-format.html">Data Format</a></li></ul> <h2 
id="BookComponentAppendix-CXFComponent">CXF Component</h2><div 
class="confluence-information-macro confluence-information-macro-note"><span 
class="aui-icon aui-icon-small aui-iconfont-warning 
confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>When using CXF as a consumer, the 
<a shape="rect" href="cxf-bean-component.html">CXF Bean Component</a> allows 
you to factor out how message payloads are received from their processing as a 
RESTful or SOAP web service. This has the potential of using a multitude of 
transports to cons
 ume web services. The bean component's configuration is also simpler and 
provides the fastest method to implement web services using Camel and 
CXF.</p></div></div><div class="confluence-information-macro 
confluence-information-macro-tip"><span class="aui-icon aui-icon-small 
aui-iconfont-approve confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>When using CXF in streaming modes 
(see DataFormat option), then also read about <a shape="rect" 
href="stream-caching.html">Stream caching</a>.</p></div></div><p>The 
<strong>cxf:</strong> component provides integration with <a shape="rect" 
href="http://cxf.apache.org";>Apache CXF</a> for connecting to JAX-WS services 
hosted in CXF.</p><p><style type="text/css">/*<![CDATA[*/
-div.rbtoc1464085061807 {padding: 0px;}
-div.rbtoc1464085061807 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1464085061807 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1464164261062 {padding: 0px;}
+div.rbtoc1464164261062 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1464164261062 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1464085061807">
+/*]]>*/</style></p><div class="toc-macro rbtoc1464164261062">
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookComponentAppendix-CXFComponent">CXF Component</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookComponentAppendix-URIformat">URI format</a></li><li><a shape="rect" 
href="#BookComponentAppendix-Options">Options</a>
 <ul class="toc-indentation"><li><a shape="rect" 
href="#BookComponentAppendix-Thedescriptionsofthedataformats">The descriptions 
of the dataformats</a>
@@ -2918,7 +2918,7 @@ protected RouteBuilder createRouteBuilde
 sftp://[username@]hostname[:port]/directoryname[?options]
 ftps://[username@]hostname[:port]/directoryname[?options]
 ]]></script>
-</div></div><p>Where <strong>directoryname</strong> represents the underlying 
directory. The directory name is a relative path. Absolute paths 
are&#160;<strong>not</strong> supported. The relative path can contain nested 
folders, such as /inbox/us.</p><p>For Camel versions before <strong>Camel 
2.16</strong>, the directoryName&#160;<strong>must</strong> exist already as 
this component does not support the&#160;<code>autoCreate</code> option (which 
the file component does). The reason is that its the FTP administrator (FTP 
server) task to properly setup user accounts, and home directories with the 
right file permissions etc.</p><p>For <strong>Camel 
2.16</strong>,&#160;<code>autoCreate</code> option is supported. When consumer 
starts, before polling is scheduled, there's additional FTP operation performed 
to create the directory configured for endpoint. The default value for 
<code>autoCreate</code> is&#160;<code>true</code>.</p><p>If no 
<strong>username</strong> is provided, then <code
 >anonymous</code> login is attempted using no password.<br clear="none"> If no 
 ><strong>port</strong> number is provided, Camel will provide default values 
 >according to the protocol (ftp = 21, sftp = 22, ftps = 2222).</p><p>You can 
 >append query options to the URI in the following format, 
 ><code>?option=value&amp;option=value&amp;...</code></p><p>This component uses 
 >two different libraries for the actual FTP work. FTP and FTPS uses <a 
 >shape="rect" class="external-link" 
 >href="http://commons.apache.org/net/";>Apache Commons Net</a> while SFTP uses 
 ><a shape="rect" class="external-link" href="http://www.jcraft.com/jsch/"; 
 >rel="nofollow">JCraft JSCH</a>.</p><p>The FTPS component is only available in 
 >Camel 2.2 or newer.<br clear="none"> FTPS (also known as FTP Secure) is an 
 >extension to FTP that adds support for the Transport Layer Security (TLS) and 
 >the Secure Sockets Layer (SSL) cryptographic protocols.</p><h3 
 >id="BookComponentAppendix-URIOptions.3">URI Options</h3><p>The options below 
 >are e
 xclusive for the FTP component.</p><div class="confluence-information-macro 
confluence-information-macro-information"><p class="title">More 
options</p><span class="aui-icon aui-icon-small aui-iconfont-info 
confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>See <a shape="rect" 
href="file2.html">File</a> for more options as all the options from <a 
shape="rect" href="file2.html">File</a> is inherited.</p></div></div><div 
class="confluenceTableSmall"><div class="table-wrap"><table 
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default Value</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>username</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Specifi
 es the username to use to log in to the remote file 
systen.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>password</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Specifies the password to use to log in to 
the remote file system.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>account</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><code>null</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>Camel 2.15.2:</strong> Specified the 
account to use to login to the remote FTP server (only for FTP and FTP 
Secure)</td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>binary</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>Specifies the file transfer mode, BINARY or ASCII. 
Default is ASCII (<code>
 false</code>).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>disconnect</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.2:</strong> Whether or not 
to disconnect from remote FTP server right after use. Can be used for both 
consumer and producer. Disconnect will only disconnect the current connection 
to the FTP server. If you have a consumer which you want to stop, then you need 
to stop the consumer/route instead.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>localWorkDirectory</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>When consuming, a local work 
directory can be used to store the remote file content directly in local files, 
to avoid loading the content into memory. This is beneficial, if you consume a 
very big re
 mote file and thus can conserve memory. See below for more 
details.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>passiveMode</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTP and FTPS only</strong>: 
Specifies whether to use passive mode connections. Default is active mode 
(<code>false</code>).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>securityProtocol</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>TLS</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTPS only:</strong> Sets the 
underlying security protocol. The following values are defined: <br 
clear="none" class="atl-forced-newline"> <code>TLS</code>: Transport Layer 
Security <br clear="none" class="atl-forced-newline"> <code>SSL</code>: Secure 
Sockets Layer</p></td></tr><tr><td colspan="1" rowspan="1" class="con
 fluenceTd"><p><code>disableSecureDataChannelDefaults</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.4: FTPS 
only</strong>: Whether or not to disable using default values for 
<code>execPbsz</code> and <code>execProt</code> when using secure data 
transfer. You can set this option to <code>true</code> if you want to be in 
full control what the options <code>execPbsz</code> and <code>execProt</code> 
should be used.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>download</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.11:</strong> Whether the 
FTP consumer should download the file. If this option is set to 
<code>false</code>, then the message body will be <code>null</code>, but the 
consumer will still trigger a Camel <a shape="rect" href
 ="exchange.html">Exchange</a> that has details about the file such as file 
name, file size, etc. It's just that the file will not be 
downloaded.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p>streamDownload</p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>false</p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>Camel 2.11:</strong>&#160;Whether the consumer 
should download the entire file up front, the default behavior, or if it should 
pass an InputStream&#160;read from the remote resource rather than an in-memory 
array as the in body of the&#160;Camel&#160;<a shape="rect" 
href="exchange.html">Exchange</a>. &#160;This option is ignored if 
download&#160;is false&#160;or is localWorkDirectory is provided. &#160;This 
option is useful for working with large remote files.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>execProt</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code><
 /p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.4: 
FTPS only</strong>: Will by default use option <code>P</code> if secure data 
channel defaults hasn't been disabled. Possible values are: <br clear="none" 
class="atl-forced-newline"> <code>C</code>: Clear <br clear="none" 
class="atl-forced-newline"> <code>S</code>: Safe (SSL protocol only) <br 
clear="none" class="atl-forced-newline"> <code>E</code>: Confidential (SSL 
protocol only) <br clear="none" class="atl-forced-newline"> <code>P</code>: 
Private</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>execPbsz</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.4: FTPS only</strong>: This 
option specifies the buffer size of the secure data channel. If option 
<code>useSecureDataChannel</code> has been enabled and this option has not been 
explicit set, then value <code>0</code> i
 s used.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>isImplicit</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTPS only:</strong> Sets the 
security mode(implicit/explicit). Default is explicit 
(<code>false</code>).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>knownHostsFile</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> Sets the 
<code>known_hosts</code> file, so that the SFTP endpoint can do host key 
verification.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>knownHostsUri</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> <strong>Camel 
2.11.1:</
 strong> Sets the <code>known_hosts</code> file (loaded from classpath by 
default), so that the SFTP endpoint can do host key 
verification.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>keyPair</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> <strong>Camel 
2.12.0:</strong> Sets the Java KeyPair for SSH public key authentication, it 
supports DSA or RSA keys.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>privateKeyFile</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> Set the private 
key file to that the SFTP endpoint can do private key 
verification.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>privateKeyUri</code></p></td><td colspan="1" 
rowspan="1" class=
 "confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>SFTP only:</strong> <strong>Camel 
2.11.1:</strong> Set the private key file (loaded from classpath by default) to 
that the SFTP endpoint can do private key verification.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>privateKey</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> <strong>Camel 
2.11.1:</strong> Set the private key as byte[] to that the SFTP endpoint can do 
private key verification.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>privateKeyFilePassphrase</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> 
<strong>Deprecated:</strong> use <code>privateKeyPassphrase</code> inst
 ead. Set the private key file passphrase to that the SFTP endpoint can do 
private key verification.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>privateKeyPassphrase</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> 
<strong>Camel 2.11.1:</strong> Set the private key file passphrase to that the 
SFTP endpoint can do private key verification.</p></td></tr><tr><td colspan="1" 
rowspan="1" 
class="confluenceTd"><p><code>preferredAuthentications</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> 
<strong>Camel 2.10.7, 2.11.2,2.12.0:</strong> set the preferred authentications 
which SFTP endpoint will used. Some example include:password,publickey. If not 
specified the default list from JSCH will be used.</p></td></tr><tr><t
 d colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ciphers</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.2, 2.9: SFTP 
only</strong> Set a comma separated list of ciphers that will be used in order 
of preference. Possible cipher names are defined by <a shape="rect" 
class="external-link" href="http://www.jcraft.com/jsch/"; rel="nofollow">JCraft 
JSCH</a>. Some examples include: 
aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc. If 
not specified the default list from JSCH will be used.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>fastExistsCheck</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.2, 2.9:</strong> If set 
this option to be true, camel-ftp will use the list file directly to check if 
the fil
 e exists. Since some FTP server may not support to list the file directly, if 
the option is false, camel-ftp will use the old way to list the directory and 
check if the file exists. Note from <strong>Camel 2.10.1</strong> onwards this 
option also influences <code>readLock=changed</code> to control whether it 
performs a fast check to update file information or not. This can be used to 
speed up the process if the FTP server has a lot of files.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>strictHostKeyChecking</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>no</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> 
<strong>Camel 2.2:</strong> Sets whether to use strict host key checking. 
Possible values are: <code>no</code>, <code>yes</code> and <code>ask</code>. 
<code>ask</code> does not make sense to use as Camel cannot answer the question 
for you as its meant for human intervention. <strong
 >Note:</strong> The default in Camel 2.1 and below was 
 ><code>ask</code>.</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>maximumReconnectAttempts</code></p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p><code>3</code></p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the maximum 
 >reconnect attempts Camel performs when it tries to connect to the remote FTP 
 >server. Use 0 to disable this behavior.</p></td></tr><tr><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p><code>reconnectDelay</code></p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p><code>1000</code></p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p>Delay in millis Camel will 
 >wait before performing a reconnect attempt.</p></td></tr><tr><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p><code>connectTimeout</code></p></td><td 
 >colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>10000</code></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p><
 strong>Camel 2.4:</strong> Is the connect timeout in millis. This corresponds 
to using <code>ftpClient.connectTimeout</code> for the FTP/FTPS. For SFTP this 
option is also used when attempting to connect.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>soTimeout</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null / 30000</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTP and FTPS 
Only:</strong> <strong>Camel 2.4:</strong> Is the 
<code>SocketOptions.SO_TIMEOUT</code> value in millis. A good idea is to 
configure this to a value such as 300000 (5 minutes) to not hang a connection. 
On SFTP this option is set as timeout on the JSCH Session instance.</p><p>Also 
SFTP from <strong>Camel 2.14.3/2.15.3/2.16</strong> onwards.</p><p>From 
<strong>Camel 2.16</strong> onwards the default is 30000 (30 
sec).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>timeout</code></p></td><td colspan="1"
  rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTP and FTPS 
Only:</strong> <strong>Camel 2.4:</strong> Is the data timeout in millis. This 
corresponds to using <code>ftpClient.dataTimeout</code> for the FTP/FTPS. For 
SFTP there is no data timeout.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>throwExceptionOnConnectFailed</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.5:</strong> 
Whether or not to thrown an exception if a successful connection and login 
could not be establish. This allows a custom <code>pollStrategy</code> to deal 
with the exception, for example to stop the consumer or the 
likes.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>siteCommand</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code><
 /p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTP and 
FTPS Only:</strong> <strong>Camel 2.5:</strong> To execute site commands after 
successful login. Multiple site commands can be separated using a new line 
character (\n). Use <code>help site</code> to see which site commands your FTP 
server supports.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>stepwise</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.6:</strong> Whether or not 
stepwise traversing directories should be used or not. Stepwise means that it 
will CD one directory at a time. See more details below. You can disable this 
in case you can't use this approach.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>separator</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code><span>UNIX</span></code></p></td><td colspan="1"
  rowspan="1" class="confluenceTd"><p><strong>Camel 2.6:</strong> Dictates what 
path separator char to use when uploading files. <code>Auto</code> = Use the 
path provided without altering it. <code>UNIX</code> = Use unix style path 
separators. <code>Windows</code> = Use Windows style path 
separators.</p><p>Since <strong>Camel 2.15.2</strong>: The default value is 
changed to <span>UNIX</span> style path, before <strong>Camel 2.15.2</strong>: 
The default value is <code>Auto.</code></p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>chmod</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP Producer Only:</strong> 
<strong>Camel 2.9:</strong> Allows you to set chmod on the stored file. For 
example <code>chmod=640</code>.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>compression</code></p></td><td colspan="1" 
rowspan="1" class="confl
 uenceTd"><p>0</p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>SFTP Only:</strong> <strong>Camel 
2.8.3/2.9:</strong> To use compression. Specify a level from 1 to 10. 
<strong>Important:</strong> You must manually add the needed JSCH zlib JAR to 
the classpath for compression support.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>receiveBufferSize</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><code>32768</code></td><td 
colspan="1" rowspan="1" class="confluenceTd"><strong><span>FTP/FTPS Only: 
</span>Camel 2.15.1:</strong> The buffer size for downloading files. The 
default size is 32kb.</td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTP and FTPS Only:</strong> 
<strong>Camel 2.1:</strong> Allows you to use a custom <code>org.apache.commons
 .net.ftp.FTPClient</code> instance.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>ftpClientConfig</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTP and FTPS 
Only:</strong> <strong>Camel 2.1:</strong> Allows you to use a custom 
<code>org.apache.commons.net.ftp.FTPClientConfig</code> 
instance.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>ftpClientConfig.XXX</code></td><td colspan="1" 
rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" 
class="confluenceTd"><strong>FTP and FTPS Only:</strong> To configure various 
options on the FTPClient instance from the uri. For example: 
<code>ftpClientConfig.receiveDataSocketBufferSize=8192&amp;<span>ftpClientConfig.sendDataSocketBufferSize=8192</span></code></td></tr><tr><td
 colspan="1" rowspan="1" 
class="confluenceTd"><p><code>serverAliveInterval</code></p></td><td col
 span="1" rowspan="1" class="confluenceTd"><p><code>0</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>SFTP Only:</strong> 
<strong>Camel 2.8</strong> Allows you to set the serverAliveInterval of the 
sftp session</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>serverAliveCountMax</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>1</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>SFTP Only:</strong> 
<strong>Camel 2.8</strong> Allows you to set the serverAliveCountMax of the 
sftp session</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.trustStore.file</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
Sets the trust store file, so that the FTPS client can look up for trusted 
certificates.</p></td></tr><tr><td colspan="1" rowspan="1
 " class="confluenceTd"><p><code>ftpClient.trustStore.type</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>JKS</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
Sets the trust store type.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.trustStore.algorithm</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>SunX509</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> Sets the trust 
store algorithm.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.trustStore.password</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
Sets the trust store password.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.keyStore.file</code></p></td><td
  colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
Sets the key store file, so that the FTPS client can look up for the private 
certificate.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.keyStore.type</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>JKS</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
Sets the key store type.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.keyStore.algorithm</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>SunX509</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> Sets the key 
store algorithm.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.keyStore.password</code></p></td><td 
colspan="1" rowspan="1" 
 class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>FTPS Only:</strong> Sets the key store 
password.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.keyStore.keyPassword</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
Sets the private key password.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>sslContextParameters</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
<strong>Camel 2.9:</strong> Reference to a 
<code>org.apache.camel.util.jsse.SSLContextParameters</code> in the <a 
shape="rect" class="external-link" 
href="http://camel.apache.org/registry.html";>Registry</a>.&#160; This reference 
overrides any configured SSL r
 elated options on ftpClient as well as the securityProtocol (SSL, TLS, etc.) 
set on FtpsConfiguration.&#160; See <a shape="rect" 
href="camel-configuration-utilities.html">Using the JSSE Configuration 
Utility</a>.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>proxy</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>SFTP Only:</strong> <strong>Camel 2.10.7, 
2.11.1:</strong> Reference to a <code>com.jcraft.jsch.Proxy</code> in the <a 
shape="rect" class="external-link" 
href="http://camel.apache.org/registry.html";>Registry</a>.&#160; This proxy is 
used to consume/send messages from the target SFTP host.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>useList</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTP/FTPS Only:</strong> 
 <strong>Camel 2.12.1:</strong> Whether the consumer should use FTP LIST 
command to retrieve directory listing to see which files exists. If this option 
is set to <code>false</code>, then <code>stepwise=false</code> must be 
configured, and also <code>fileName</code> must be configured to a fixed name, 
so the consumer knows the name of the file to retrieve. When doing this only 
that single file can be retrieved. See further below for more 
details.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ignoreFileNotFoundOrPermissionError</code></p></td><td
 colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.12.1:</strong> 
Whether the consumer should ignore when a file was attempted to be retrieved 
but did not exist (for some reason), or failure due insufficient file 
permission error. <strong>Camel 2.14.2:</strong> This option now applies to 
directories as well.</p></td></tr><t
 r><td colspan="1" rowspan="1" 
class="confluenceTd"><code>sendNoop</code></td><td colspan="1" rowspan="1" 
class="confluenceTd"><code>true</code></td><td colspan="1" rowspan="1" 
class="confluenceTd"><strong>Camel 2.16:</strong> Producer only. Whether to 
send a noop command as a pre-write check before uploading files to the FTP 
server. This is enabled by default as a validation of the connection is still 
valid, which allows to silently re-connect to be able to upload the file. 
However if this causes problems, you can turn this option off.</td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><code>jschLoggingLevel</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><code>WARN</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>SFTP Only: Camel 2.15.3/2.16:</strong> 
The logging level to use for JSCH activity logging. As JSCH is verbose at by 
default at INFO level the threshold is WARN by default.</td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceT
 d"><code>bulkRequest</code></td><td colspan="1" rowspan="1" 
class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" 
class="confluenceTd"><strong>SFTP Only: Camel 2.17.1:</strong> Specifies how 
many requests may be outstanding at any one time. Increasing this value may 
slightly improve file transfer speed but will increase memory 
usage.</td></tr></tbody></table></div></div><div 
class="confluence-information-macro 
confluence-information-macro-information"><p class="title">FTPS component 
default trust store</p><span class="aui-icon aui-icon-small aui-iconfont-info 
confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>When using the 
<code>ftpClient.</code> properties related to SSL with the FTPS component, the 
trust store accepts all certificates. If you only want trust selective 
certificates, you have to configure the trust store with the 
<code>ftpClient.trustStore.xxx</code> options or by configuring a custom 
<code>ftpClient</code>.</p><p>When
  using <code>sslContextParameters</code>, the trust store is managed by the 
configuration of the provided SSLContextParameters 
instance.</p></div></div><p>You can configure additional options on the 
<code>ftpClient</code> and <code>ftpClientConfig</code> from the URI directly 
by using the <code>ftpClient.</code> or <code>ftpClientConfig.</code> 
prefix.</p><p>For example to set the <code>setDataTimeout</code> on the 
<code>FTPClient</code> to 30 seconds you can do:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>Where <strong>directoryname</strong> represents the underlying 
directory. The directory name is a relative path. Absolute paths 
are&#160;<strong>not</strong> supported. The relative path can contain nested 
folders, such as /inbox/us.</p><p>For Camel versions before <strong>Camel 
2.16</strong>, the directoryName&#160;<strong>must</strong> exist already as 
this component does not support the&#160;<code>autoCreate</code> option (which 
the file component does). The reason is that its the FTP administrator (FTP 
server) task to properly setup user accounts, and home directories with the 
right file permissions etc.</p><p>For <strong>Camel 
2.16</strong>,&#160;<code>autoCreate</code> option is supported. When consumer 
starts, before polling is scheduled, there's additional FTP operation performed 
to create the directory configured for endpoint. The default value for 
<code>autoCreate</code> is&#160;<code>true</code>.</p><p>If no 
<strong>username</strong> is provided, then <code
 >anonymous</code> login is attempted using no password.<br clear="none"> If no 
 ><strong>port</strong> number is provided, Camel will provide default values 
 >according to the protocol (ftp = 21, sftp = 22, ftps = 2222).</p><p>You can 
 >append query options to the URI in the following format, 
 ><code>?option=value&amp;option=value&amp;...</code></p><p>This component uses 
 >two different libraries for the actual FTP work. FTP and FTPS uses <a 
 >shape="rect" class="external-link" 
 >href="http://commons.apache.org/net/";>Apache Commons Net</a> while SFTP uses 
 ><a shape="rect" class="external-link" href="http://www.jcraft.com/jsch/"; 
 >rel="nofollow">JCraft JSCH</a>.</p><p>The FTPS component is only available in 
 >Camel 2.2 or newer.<br clear="none"> FTPS (also known as FTP Secure) is an 
 >extension to FTP that adds support for the Transport Layer Security (TLS) and 
 >the Secure Sockets Layer (SSL) cryptographic protocols.</p><h3 
 >id="BookComponentAppendix-URIOptions.3">URI Options</h3><p>The options below 
 >are e
 xclusive for the FTP component.</p><div class="confluence-information-macro 
confluence-information-macro-information"><p class="title">More 
options</p><span class="aui-icon aui-icon-small aui-iconfont-info 
confluence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>See <a shape="rect" 
href="file2.html">File</a> for more options as all the options from <a 
shape="rect" href="file2.html">File</a> is inherited.</p></div></div><div 
class="confluenceTableSmall"><div class="table-wrap"><table 
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default Value</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>username</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Specifi
 es the username to use to log in to the remote file 
systen.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>password</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Specifies the password to use to log in to 
the remote file system.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>account</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><code>null</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>Camel 2.15.2:</strong> Specified the 
account to use to login to the remote FTP server (only for FTP and FTP 
Secure)</td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>binary</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>Specifies the file transfer mode, BINARY or ASCII. 
Default is ASCII (<code>
 false</code>).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>disconnect</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.2:</strong> Whether or not 
to disconnect from remote FTP server right after use. Can be used for both 
consumer and producer. Disconnect will only disconnect the current connection 
to the FTP server. If you have a consumer which you want to stop, then you need 
to stop the consumer/route instead.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>localWorkDirectory</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>When consuming, a local work 
directory can be used to store the remote file content directly in local files, 
to avoid loading the content into memory. This is beneficial, if you consume a 
very big re
 mote file and thus can conserve memory. See below for more 
details.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>passiveMode</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTP and FTPS only</strong>: 
Specifies whether to use passive mode connections. Default is active mode 
(<code>false</code>).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>securityProtocol</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>TLS</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTPS only:</strong> Sets the 
underlying security protocol. The following values are defined: <br 
clear="none" class="atl-forced-newline"> <code>TLS</code>: Transport Layer 
Security <br clear="none" class="atl-forced-newline"> <code>SSL</code>: Secure 
Sockets Layer</p></td></tr><tr><td colspan="1" rowspan="1" class="con
 fluenceTd"><p><code>disableSecureDataChannelDefaults</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.4: FTPS 
only</strong>: Whether or not to disable using default values for 
<code>execPbsz</code> and <code>execProt</code> when using secure data 
transfer. You can set this option to <code>true</code> if you want to be in 
full control what the options <code>execPbsz</code> and <code>execProt</code> 
should be used.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>download</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.11:</strong> Whether the 
FTP consumer should download the file. If this option is set to 
<code>false</code>, then the message body will be <code>null</code>, but the 
consumer will still trigger a Camel <a shape="rect" href
 ="exchange.html">Exchange</a> that has details about the file such as file 
name, file size, etc. It's just that the file will not be 
downloaded.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p>streamDownload</p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>false</p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>Camel 2.11:</strong>&#160;Whether the consumer 
should download the entire file up front, the default behavior, or if it should 
pass an InputStream&#160;read from the remote resource rather than an in-memory 
array as the in body of the&#160;Camel&#160;<a shape="rect" 
href="exchange.html">Exchange</a>. &#160;This option is ignored if 
download&#160;is false&#160;or is localWorkDirectory is provided. &#160;This 
option is useful for working with large remote files.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>execProt</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code><
 /p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.4: 
FTPS only</strong>: Will by default use option <code>P</code> if secure data 
channel defaults hasn't been disabled. Possible values are: <br clear="none" 
class="atl-forced-newline"> <code>C</code>: Clear <br clear="none" 
class="atl-forced-newline"> <code>S</code>: Safe (SSL protocol only) <br 
clear="none" class="atl-forced-newline"> <code>E</code>: Confidential (SSL 
protocol only) <br clear="none" class="atl-forced-newline"> <code>P</code>: 
Private</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>execPbsz</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.4: FTPS only</strong>: This 
option specifies the buffer size of the secure data channel. If option 
<code>useSecureDataChannel</code> has been enabled and this option has not been 
explicit set, then value <code>0</code> i
 s used.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>isImplicit</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTPS only:</strong> Sets the 
security mode(implicit/explicit). Default is explicit 
(<code>false</code>).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>knownHostsFile</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> Sets the 
<code>known_hosts</code> file, so that the SFTP endpoint can do host key 
verification.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>useUserKnownHostsFile</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><span style="font-family: 
monospace;">true</span></td><td colspan="1" rowspan="1" 
class="confluenceTd"><strong>SFTP onlly: Camel 2.
 18:</strong> If knownHostFile has not been explicit configured then use the 
host file from System.getProperty(user.home)/.ssh/known_hosts</td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>knownHostsUri</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> <strong>Camel 
2.11.1:</strong> Sets the <code>known_hosts</code> file (loaded from classpath 
by default), so that the SFTP endpoint can do host key 
verification.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>keyPair</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> <strong>Camel 
2.12.0:</strong> Sets the Java KeyPair for SSH public key authentication, it 
supports DSA or RSA keys.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd">
 <p><code>privateKeyFile</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>SFTP only:</strong> Set the private key file to 
that the SFTP endpoint can do private key verification.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>privateKeyUri</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> <strong>Camel 
2.11.1:</strong> Set the private key file (loaded from classpath by default) to 
that the SFTP endpoint can do private key verification.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>privateKey</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> <strong>Camel 
2.11.1:</strong> Set the privat
 e key as byte[] to that the SFTP endpoint can do private key 
verification.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>privateKeyFilePassphrase</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> 
<strong>Deprecated:</strong> use <code>privateKeyPassphrase</code> instead. Set 
the private key file passphrase to that the SFTP endpoint can do private key 
verification.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>privateKeyPassphrase</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> 
<strong>Camel 2.11.1:</strong> Set the private key file passphrase to that the 
SFTP endpoint can do private key verification.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>preferre
 dAuthentications</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>SFTP only:</strong> <strong>Camel 2.10.7, 
2.11.2,2.12.0:</strong> set the preferred authentications which SFTP endpoint 
will used. Some example include:password,publickey. If not specified the 
default list from JSCH will be used.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>ciphers</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.2, 2.9: SFTP 
only</strong> Set a comma separated list of ciphers that will be used in order 
of preference. Possible cipher names are defined by <a shape="rect" 
class="external-link" href="http://www.jcraft.com/jsch/"; rel="nofollow">JCraft 
JSCH</a>. Some examples include: 
aes128-ctr,aes128-cbc,3des-ctr,3des-cbc,blowfish-cbc,aes192-cbc,aes256-cbc. If 
 not specified the default list from JSCH will be used.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>fastExistsCheck</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.2, 2.9:</strong> If set 
this option to be true, camel-ftp will use the list file directly to check if 
the file exists. Since some FTP server may not support to list the file 
directly, if the option is false, camel-ftp will use the old way to list the 
directory and check if the file exists. Note from <strong>Camel 2.10.1</strong> 
onwards this option also influences <code>readLock=changed</code> to control 
whether it performs a fast check to update file information or not. This can be 
used to speed up the process if the FTP server has a lot of 
files.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>strictHostKeyChecking</code></p></td><td 
colspan="1" rows
 pan="1" class="confluenceTd"><p><code>no</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>SFTP only:</strong> <strong>Camel 
2.2:</strong> Sets whether to use strict host key checking. Possible values 
are: <code>no</code>, <code>yes</code> and <code>ask</code>. <code>ask</code> 
does not make sense to use as Camel cannot answer the question for you as its 
meant for human intervention. <strong>Note:</strong> The default in Camel 2.1 
and below was <code>ask</code>.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>maximumReconnectAttempts</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>3</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the maximum reconnect 
attempts Camel performs when it tries to connect to the remote FTP server. Use 
0 to disable this behavior.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>reconnectDelay</code></p></td><td colspan="1" row
 span="1" class="confluenceTd"><p><code>1000</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Delay in millis Camel will wait before 
performing a reconnect attempt.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>connectTimeout</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>10000</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.4:</strong> Is the connect 
timeout in millis. This corresponds to using 
<code>ftpClient.connectTimeout</code> for the FTP/FTPS. For SFTP this option is 
also used when attempting to connect.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>soTimeout</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null / 
30000</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>FTP and FTPS Only:</strong> <strong>Camel 
2.4:</strong> Is the <code>SocketOptions.SO_TIMEOUT</code> value in millis. A 
good id
 ea is to configure this to a value such as 300000 (5 minutes) to not hang a 
connection. On SFTP this option is set as timeout on the JSCH Session 
instance.</p><p>Also SFTP from <strong>Camel 2.14.3/2.15.3/2.16</strong> 
onwards.</p><p>From <strong>Camel 2.16</strong> onwards the default is 30000 
(30 sec).</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>timeout</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>30000</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTP and FTPS Only:</strong> 
<strong>Camel 2.4:</strong> Is the data timeout in millis. This corresponds to 
using <code>ftpClient.dataTimeout</code> for the FTP/FTPS. For SFTP there is no 
data timeout.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>throwExceptionOnConnectFailed</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><s
 trong>Camel 2.5:</strong> Whether or not to thrown an exception if a 
successful connection and login could not be establish. This allows a custom 
<code>pollStrategy</code> to deal with the exception, for example to stop the 
consumer or the likes.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>siteCommand</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTP and FTPS Only:</strong> 
<strong>Camel 2.5:</strong> To execute site commands after successful login. 
Multiple site commands can be separated using a new line character (\n). Use 
<code>help site</code> to see which site commands your FTP server 
supports.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>stepwise</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>Camel 2.6:</str
 ong> Whether or not stepwise traversing directories should be used or not. 
Stepwise means that it will CD one directory at a time. See more details below. 
You can disable this in case you can't use this approach.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>separator</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code><span>UNIX</span></code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.6:</strong> 
Dictates what path separator char to use when uploading files. 
<code>Auto</code> = Use the path provided without altering it. 
<code>UNIX</code> = Use unix style path separators. <code>Windows</code> = Use 
Windows style path separators.</p><p>Since <strong>Camel 2.15.2</strong>: The 
default value is changed to <span>UNIX</span> style path, before <strong>Camel 
2.15.2</strong>: The default value is <code>Auto.</code></p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>chmod</code></p></t
 d><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>SFTP Producer Only:</strong> <strong>Camel 
2.9:</strong> Allows you to set chmod on the stored file. For example 
<code>chmod=640</code>.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>compression</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>0</p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>SFTP Only:</strong> <strong>Camel 
2.8.3/2.9:</strong> To use compression. Specify a level from 1 to 10. 
<strong>Important:</strong> You must manually add the needed JSCH zlib JAR to 
the classpath for compression support.</p></td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>receiveBufferSize</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><code>32768</code></td><td 
colspan="1" rowspan="1" class="confluenceTd"><strong><span>FTP/FTPS Only: 
</span>Camel 2.15
 .1:</strong> The buffer size for downloading files. The default size is 
32kb.</td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTP and FTPS Only:</strong> 
<strong>Camel 2.1:</strong> Allows you to use a custom 
<code>org.apache.commons.net.ftp.FTPClient</code> 
instance.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClientConfig</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTP and FTPS Only:</strong> 
<strong>Camel 2.1:</strong> Allows you to use a custom 
<code>org.apache.commons.net.ftp.FTPClientConfig</code> 
instance.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>ftpClientConfig.XXX</code></td><td colspan="1" 
rowspan="1" class="confluenceT
 d">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"><strong>FTP and 
FTPS Only:</strong> To configure various options on the FTPClient instance from 
the uri. For example: 
<code>ftpClientConfig.receiveDataSocketBufferSize=8192&amp;<span>ftpClientConfig.sendDataSocketBufferSize=8192</span></code></td></tr><tr><td
 colspan="1" rowspan="1" 
class="confluenceTd"><p><code>serverAliveInterval</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>0</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>SFTP Only:</strong> 
<strong>Camel 2.8</strong> Allows you to set the serverAliveInterval of the 
sftp session</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>serverAliveCountMax</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>1</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>SFTP Only:</strong> 
<strong>Camel 2.8</strong> Allows you to set the serverAliveCountMax of the 
 sftp session</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.trustStore.file</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
Sets the trust store file, so that the FTPS client can look up for trusted 
certificates.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.trustStore.type</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>JKS</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
Sets the trust store type.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.trustStore.algorithm</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>SunX509</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> Sets the trust 
store algorithm.</p></td
 ></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>ftpClient.trustStore.password</code></p></td><td
 > colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><strong>FTPS Only:</strong> Sets the trust store 
 >password.</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>ftpClient.keyStore.file</code></p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
 >Sets the key store file, so that the FTPS client can look up for the private 
 >certificate.</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>ftpClient.keyStore.type</code></p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p><code>JKS</code></p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
 >Sets the key store type.</p></td></tr><tr><td colspan="1" rows
 pan="1" 
class="confluenceTd"><p><code>ftpClient.keyStore.algorithm</code></p></td><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>SunX509</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> Sets the key 
store algorithm.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.keyStore.password</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
Sets the key store password.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ftpClient.keyStore.keyPassword</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><strong>FTPS Only:</strong> 
Sets the private key password.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>sslContextParameters</code></p></t
 d><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>FTPS Only:</strong> <strong>Camel 2.9:</strong> 
Reference to a <code>org.apache.camel.util.jsse.SSLContextParameters</code> in 
the <a shape="rect" class="external-link" 
href="http://camel.apache.org/registry.html";>Registry</a>.&#160; This reference 
overrides any configured SSL related options on ftpClient as well as the 
securityProtocol (SSL, TLS, etc.) set on FtpsConfiguration.&#160; See <a 
shape="rect" href="camel-configuration-utilities.html">Using the JSSE 
Configuration Utility</a>.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>proxy</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>SFTP Only:</strong> <strong>Camel 2.10.7, 
2.11.1:</strong> Reference to a <code>com.jcraft.jsch.Proxy</code> in the <a 
shape="rect"
  class="external-link" 
href="http://camel.apache.org/registry.html";>Registry</a>.&#160; This proxy is 
used to consume/send messages from the target SFTP host.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>useList</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><strong>FTP/FTPS Only:</strong> 
<strong>Camel 2.12.1:</strong> Whether the consumer should use FTP LIST command 
to retrieve directory listing to see which files exists. If this option is set 
to <code>false</code>, then <code>stepwise=false</code> must be configured, and 
also <code>fileName</code> must be configured to a fixed name, so the consumer 
knows the name of the file to retrieve. When doing this only that single file 
can be retrieved. See further below for more details.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>ignoreFileNotFoundOrPermissionError</code></p></td><t
 d colspan="1" rowspan="1" 
class="confluenceTd"><p><code>false</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><strong>Camel 2.12.1:</strong> Whether the consumer 
should ignore when a file was attempted to be retrieved but did not exist (for 
some reason), or failure due insufficient file permission error. <strong>Camel 
2.14.2:</strong> This option now applies to directories as 
well.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><code>sendNoop</code></td><td colspan="1" rowspan="1" 
class="confluenceTd"><code>true</code></td><td colspan="1" rowspan="1" 
class="confluenceTd"><strong>Camel 2.16:</strong> Producer only. Whether to 
send a noop command as a pre-write check before uploading files to the FTP 
server. This is enabled by default as a validation of the connection is still 
valid, which allows to silently re-connect to be able to upload the file. 
However if this causes problems, you can turn this option off.</td></tr><tr><td 
colspan="1" rowspan
 ="1" class="confluenceTd"><code>jschLoggingLevel</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><code>WARN</code></td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>SFTP Only: Camel 2.15.3/2.16:</strong> 
The logging level to use for JSCH activity logging. As JSCH is verbose at by 
default at INFO level the threshold is WARN by default.</td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><code>bulkRequest</code></td><td 
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" 
rowspan="1" class="confluenceTd"><strong>SFTP Only: Camel 2.17.1:</strong> 
Specifies how many requests may be outstanding at any one time. Increasing this 
value may slightly improve file transfer speed but will increase memory 
usage.</td></tr></tbody></table></div></div><div 
class="confluence-information-macro 
confluence-information-macro-information"><p class="title">FTPS component 
default trust store</p><span class="aui-icon aui-icon-small aui-iconfont-info 
conflu
 ence-information-macro-icon"></span><div 
class="confluence-information-macro-body"><p>When using the 
<code>ftpClient.</code> properties related to SSL with the FTPS component, the 
trust store accepts all certificates. If you only want trust selective 
certificates, you have to configure the trust store with the 
<code>ftpClient.trustStore.xxx</code> options or by configuring a custom 
<code>ftpClient</code>.</p><p>When using <code>sslContextParameters</code>, the 
trust store is managed by the configuration of the provided 
SSLContextParameters instance.</p></div></div><p>You can configure additional 
options on the <code>ftpClient</code> and <code>ftpClientConfig</code> from the 
URI directly by using the <code>ftpClient.</code> or 
<code>ftpClientConfig.</code> prefix.</p><p>For example to set the 
<code>setDataTimeout</code> on the <code>FTPClient</code> to 30 seconds you can 
do:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[from(&quot;ftp://foo@myserver?password=secret&amp;ftpClient.dataTimeout=30000&quot;).to(&quot;bean:foo&quot;);
 ]]></script>
 </div></div><p>You can mix and match and have use both prefixes, for example 
to configure date format or timezones.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
@@ -9093,7 +9093,7 @@ protected RouteBuilder createRouteBuilde
 &lt;/dependency&gt;
 ]]></script>
 </div></div><h3 id="BookComponentAppendix-SMSlimitations">SMS 
limitations</h3><p>SMS is neither reliable or secure.&#160; Users who require 
reliable and secure delivery may want to consider using the XMPP or SIP 
components instead, combined with a smartphone app supporting the chosen 
protocol.</p><ul><li>Reliability: although the SMPP standard offers a range of 
feedback mechanisms to indicate errors, non-delivery and confirmation of 
delivery it is not uncommon for mobile networks to hide or simulate these 
responses.&#160; For example, some networks automatically send a delivery 
confirmation for every message even if the destination number is invalid or not 
switched on.&#160; Some networks silently drop messages if they think they are 
spam.&#160; Spam detection rules in the network may be very crude, sometimes 
more than 100 messages per day from a single sender may be considered 
spam.</li><li>Security: there is basic encryption for the last hop from the 
radio tower down to the recipi
 ent handset.&#160; SMS messages are not encrypted or authenticated in any 
other part of the network.&#160; Some operators allow staff in retail outlets 
or call centres to browse through the SMS message histories of their 
customers.&#160; Message sender identity can be easily forged.&#160; Regulators 
and even the mobile telephone industry itself has cautioned against the use of 
SMS in two-factor authentication schemes and other purposes where security is 
important.</li></ul><p>While the Camel component makes it as easy as possible 
to send messages to the SMS network, it can not offer an easy solution to these 
problems.</p><h2 
id="BookComponentAppendix-Datacoding,alphabetandinternationalcharactersets">Data
 coding, alphabet and international character sets</h2><p>Data coding and 
alphabet can be specified on a per-message basis.&#160; Default values can be 
specified for the endpoint.&#160; It is important to understand the 
relationship between these options and the way the component act
 s when more than one value is set.</p><p>Data coding is an 8 bit field in the 
SMPP wire format.</p><p>Alphabet corresponds to bits 0-3 of the data coding 
field.&#160; For some types of message, where a message class is used (by 
setting bit 5 of the data coding field), the lower two bits of the data coding 
field are not interpreted as alphabet and only bits 2 and 3 impact the 
alphabet.</p><p>Furthermore, current version of the JSMPP library only seems to 
support bits 2 and 3, assuming that bits 0 and 1 are used for message 
class.&#160; This is why the Alphabet class in JSMPP doesn't support the value 
3 (binary 0011) which indicates ISO-8859-1.</p><p>Although JSMPP provides a 
representation of the message class parameter, the Camel component doesn't 
currently provide a way to set it other than manually setting the corresponding 
bits in the data coding field.</p><p>When setting the data coding field in the 
outgoing message, the Camel component considers the following values and uses th
 e first one it can find:</p><ul><li>the data coding specified in a 
header</li><li>the alphabet specified in a header</li><li>the data coding 
specified in the endpoint configuration (URI parameter)</li></ul><p>Older 
versions of Camel had bugs in support for international character sets.&#160; 
This feature only worked when a single encoding was used for all messages and 
was troublesome when users wanted to change it on a per-message basis.&#160; 
Users who require this to work should ensure their version of Camel includes 
the fix for&#160;</p><div class="aui-message warning jim-inline-block">
-    <span class="aui-icon icon-warning"></span>JIRA Issues Macro: 
com.atlassian.sal.api.net.ResponseException: java.net.SocketTimeoutException: 
connect timed out
+    <span class="aui-icon icon-warning"></span>JIRA Issues Macro: 
com.atlassian.sal.api.net.ResponseStatusException: Unexpected response 
received. Status code: 404
 </div>
 .<p>In addition to trying to send the data coding value to the SMSC, the Camel 
component also tries to analyze the message body, convert it to a Java String 
(Unicode) and convert that to a byte array in the corresponding alphabet&#160; 
When deciding which alphabet to use in the byte array, the Camel SMPP component 
does not consider the data coding value (header or configuration), it only 
considers the specified alphabet (from either the header or endpoint 
parameter).</p><p>If some characters in the String can't be represented in the 
chosen alphabet, they may be replaced by the question mark ( ? ) symbol.&#160; 
Users of the API may want to consider checking if their message body can be 
converted to ISO-8859-1 before passing it to the component and if not, setting 
the alphabet header to request UCS-2 encoding.&#160; If the alphabet and data 
coding options are not specified at all then the component may try to detect 
the required encoding and set the data coding for you.</p><p>The list
  of alphabet codes are specified in the SMPP specification v3.4, section 
5.2.19.&#160; One notable limitation of the SMPP specification is that there is 
no alphabet code for explicitly requesting use of the GSM 3.38 (7 bit) 
character set.&#160; Choosing the value 0 for the alphabet selects the SMSC 
<em>default</em> alphabet, this usually means GSM 3.38 but it is not 
guaranteed.&#160; The SMPP gateway Nexmo <a shape="rect" class="external-link" 
href="https://help.nexmo.com/hc/en-us/articles/204015813-How-to-change-the-character-encoding-in-SMPP-";
 rel="nofollow">actually allows the default to be mapped to any other character 
set with a control panel option</a>. It is suggested that users check with 
their SMSC operator to confirm exactly which character set is being used as the 
default.</p><h3 
id="BookComponentAppendix-Messagesplittingandthrottling">Message splitting and 
throttling</h3><p>After transforming a message body from a String to a byte 
array, the Camel component is also respo
 nsible for splitting the message into parts (within the 140 byte SMS size 
limit) before passing it to JSMPP.&#160; This is completed 
automatically.</p><p>If the GSM 3.38 alphabet is used, the component will pack 
up to 160 characters into the 140 byte message body.&#160; If an 8 bit 
character set is used (e.g. ISO-8859-1 for western Europe) then 140 characters 
will be allowed within the 140 byte message body.&#160; If 16 bit UCS-2 
encoding is used then just 70 characters fit into each 140 byte 
message.</p><p>Some SMSC providers implement throttling rules.&#160; Each part 
of a message that has been split may be counted separately by the provider's 
throttling mechanism.&#160; The Camel Throttler component can be useful for 
throttling messages in the SMPP route before handing them to the SMSC.</p><h3 
id="BookComponentAppendix-URIformat.61">URI format</h3><div class="code panel 
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[smpp://[username@]hostname[:port][?options]


Reply via email to