Author: buildbot Date: Wed Aug 16 22:19:52 2017 New Revision: 1016917 Log: Production update by buildbot for camel
Modified: websites/production/camel/content/aws-sns.html websites/production/camel/content/cache/main.pageCache Modified: websites/production/camel/content/aws-sns.html ============================================================================== --- websites/production/camel/content/aws-sns.html (original) +++ websites/production/camel/content/aws-sns.html Wed Aug 16 22:19:52 2017 @@ -88,17 +88,17 @@ <div class="wiki-content maincontent"><h2 id="AWS-SNS-SNSComponent">SNS Component</h2><p><strong>Available as of Camel 2.8</strong></p><p>The SNS component allows messages to be sent to an <a shape="rect" class="external-link" href="http://aws.amazon.com/sns" rel="nofollow">Amazon Simple Notification</a> Topic. The implementation of the Amazon API is provided by the <a shape="rect" class="external-link" href="http://aws.amazon.com/sdkforjava/" rel="nofollow">AWS SDK</a>.</p><div class="confluence-information-macro confluence-information-macro-information"><p class="title">Prerequisites</p><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>You must have a valid Amazon Web Services developer account, and be signed up to use Amazon SNS. More information are available at <a shape="rect" class="external-link" href="http://aws.amazon.com/sns" rel="nofollow">Amazon SNS</a>.</p></div></div>< h3 id="AWS-SNS-URIFormat">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[aws-sns://topicName[?options] aws-sns://topicNameOrArn[?options] (Camel 2.18 onwards)]]></script> -</div></div><p>The topic will be created if they don't already exists.<br clear="none"> You can append query options to the URI in the following format, <code>?options=value&option2=value&...</code></p><h3 id="AWS-SNS-URIOptions">URI Options</h3><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>Context</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>amazonSNSClient</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Reference to a <code>com.amazonaws.services.sns.AmazonSNS</code> in the <a shape="rect" href="registry.html">Regis try</a>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>accessKey</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Amazon AWS Access Key</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>secretKey</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Amazon AWS Secret Key</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>subject</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The subject which is used if the message header 'CamelAwsSnsSubject' is not present.</p> </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>amazonSNSEndpoint</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The region with which the AWS-SNS client wants to work with.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>policy</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.8.4</strong>: The policy for this queue to set in the <code>com.amazonaws.services.sns.model.SetTopicAttributesRequest</code>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>proxyHost</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Pr oducer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.16</strong>: Specify a proxy host to be used inside the client definition.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>proxyPort</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.16</strong>: Specify a proxy port to be used inside the client definition.</p></td></tr></tbody></table></div><div class="confluence-information-macro confluence-information-macro-information"><p class="title">Required SNS component options</p><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>You have to provide the amazonSNSClient in the <a shape="rect" href="registry.html">Registry</a> or your accessKey and secretKey to access the <a shape="rect" class="external-link" href="http://aws.amazon.com/sns" rel="nofollow">Amazon's SNS</a>.</p></div></div><h3 id="AWS-SNS-Usage">Usage</h3><h4 id="AWS-SNS-MessageheadersevaluatedbytheSNSproducer">Message headers evaluated by the SNS producer</h4><div class="confluenceTableSmall"><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Header</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelAwsSnsSubject</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The Amazon SNS message subject. If not set, the subject from the <code>SnsConfiguration</code> is used.</p></td></tr></tbody></table></div></div> +</div></div><p>The topic will be created if it doesn't already exists. You can append query options to the URI in the following format, <strong><code>?options=value&option2=value&...</code></strong></p><h3 id="AWS-SNS-URIOptions">URI Options</h3><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>Context</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>accessKey</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Amazon AWS Access Key.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>amazonSNS Client</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Reference to a <strong><code>com.amazonaws.services.sns.AmazonSNS</code></strong> in the <a shape="rect" href="registry.html">Registry</a>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>amazonSNSEndpoint</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The region with which the AWS-SNS client wants to work with.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>policy</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan= "1" class="confluenceTd"><p><strong>Camel 2.8.4</strong>: The policy for this queue to set in the <strong><code>com.amazonaws.services.sns.model.SetTopicAttributesRequest</code></strong>.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>proxyHost</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.16</strong>: Specify a proxy host to be used inside the client definition.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>proxyPort</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.16</strong>: Specify a proxy port to be used inside the client definition.</p></td></tr><tr><td colspan= "1" rowspan="1" class="confluenceTd"><p><code>secretKey</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Amazon AWS Secret Key.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>subject</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>Producer</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The subject which is used if the message header <strong><code>CamelAwsSnsSubject</code></strong> is not present.</p></td></tr></tbody></table></div><div class="confluence-information-macro confluence-information-macro-information"><p class="title">Required SNS component options</p><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence- information-macro-body"><p>You have to provide the <strong><code>amazonSNSClient</code></strong> in the <a shape="rect" href="registry.html">Registry</a> or your <strong><code>accessKey</code></strong> and <strong><code>secretKey</code></strong> to access the <a shape="rect" class="external-link" href="http://aws.amazon.com/sns" rel="nofollow">Amazon's SNS</a>.</p></div></div><h3 id="AWS-SNS-Usage">Usage</h3><h4 id="AWS-SNS-MessageheadersevaluatedbytheSNSproducer">Message headers evaluated by the SNS producer</h4><div class="confluenceTableSmall"><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Header</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelAwsSnsSubject</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code> String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The Amazon SNS message subject. If not set, the subject from the <strong><code>SnsConfiguration</code></strong> is used.</p></td></tr></tbody></table></div></div> <h4 id="AWS-SNS-MessageheaderssetbytheSNSproducer">Message headers set by the SNS producer</h4><div class="confluenceTableSmall"><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Header</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelAwsSnsMessageId</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The Amazon SNS message ID.</p></td></tr></tbody></table></div></div> -<h4 id="AWS-SNS-AdvancedAmazonSNSconfiguration">Advanced AmazonSNS configuration</h4><p>If you need more control over the <code>AmazonSNS</code> instance configuration you can create your own instance and refer to it from the URI:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +<h4 id="AWS-SNS-AdvancedAmazonSNSconfiguration">Advanced AmazonSNS configuration</h4><p>If you need more control over the <strong><code>AmazonSNS</code></strong> instance configuration you can create your own instance and refer to it from the URI:</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("direct:start") -.to("aws-sns://MyTopic?amazonSNSClient=#client"); + .to("aws-sns://MyTopic?amazonSNSClient=#client"); ]]></script> -</div></div><p>The <code>#client</code> refers to a <code>AmazonSNS</code> in the <a shape="rect" href="registry.html">Registry</a>.</p><p>For example if your Camel Application is running behind a firewall:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl"> +</div></div><p>The <code>client</code> refers to a <strong><code>AmazonSNS</code></strong> in the <a shape="rect" href="registry.html">Registry</a>.</p><p>For example if your Camel Application is running behind a firewall:</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[AWSCredentials awsCredentials = new BasicAWSCredentials("myAccessKey", "mySecretKey"); ClientConfiguration clientConfiguration = new ClientConfiguration(); clientConfiguration.setProxyHost("http://myProxyHost"); @@ -114,7 +114,7 @@ registry.bind("client", client <version>${camel-version}</version> </dependency> ]]></script> -</div></div><p>where <code>${camel-version</code>} must be replaced by the actual version of Camel (2.8 or higher).</p><p></p><h3 id="AWS-SNS-SeeAlso">See Also</h3> +</div></div><p>where <strong><code>${camel-version</code>}</strong> must be replaced by the actual version of Camel (2.8 or higher).</p><p></p><h3 id="AWS-SNS-SeeAlso">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 class="alternate"><li><a shape="rect" href="aws.html">AWS Component</a></li></ul></div> </td> <td valign="top"> Modified: websites/production/camel/content/cache/main.pageCache ============================================================================== Binary files - no diff available.