This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 3a7ec68e01d21175110709ddae96ce7df0d21226
Author: mathewsreji <contactr...@gmail.com>
AuthorDate: Mon Feb 1 14:48:41 2021 -0500

    Moving list of supported services and operations into a  table for better 
presentation  and extension in future service supports. related to CAMEL-16001
    
    Moving list of supported services and operations into a table  - related to 
CAMEL-16001
---
 .../src/main/docs/hwcloud-smn-component.adoc       | 53 +++++++++++-----------
 1 file changed, 27 insertions(+), 26 deletions(-)

diff --git 
a/components/camel-huaweicloud-smn/src/main/docs/hwcloud-smn-component.adoc 
b/components/camel-huaweicloud-smn/src/main/docs/hwcloud-smn-component.adoc
index 2051d32..8104d66 100644
--- a/components/camel-huaweicloud-smn/src/main/docs/hwcloud-smn-component.adoc
+++ b/components/camel-huaweicloud-smn/src/main/docs/hwcloud-smn-component.adoc
@@ -126,17 +126,18 @@ with the following path and query parameters:
 
 |=======================================================================
 
-== Supported smn services
 
-- publishMessageService
+== Supported list of smn services and corresponding operations
 
+[width="100%",cols="50%,50%",options="header",]
+|=======================================================================
+|Service |Operations
 
-== Supported smn operations
+|`publishMessageService` | publishAsTextMessage, publishAsTemplatedMessage|
+|=======================================================================
 
-- publishAsTextMessage
-- publishAsTemplatedMessage
 
-== Inline Configuration of Route
+== Inline Configuration of route
 ==== publishAsTextMessage
 Java DSL
 [source,java]
@@ -154,18 +155,18 @@ XML DSL
 [source,xml]
 
--------------------------------------------------------------------------------
 <route>
-            <from uri="direct:triggerRoute"/>
-            <setProperty name="CamelHwCloudSmnSubject">
-                <constant>this is my subjectline</constant>
-            </setProperty>
-            <setProperty name="CamelHwCloudSmnTopic">
-                <constant>reji-test</constant>
-            </setProperty>
-            <setProperty name="CamelHwCloudSmnMessageTtl">
-                <constant>60</constant>
-            </setProperty>
-            <to 
uri="hwcloud-smn:publishMessageService?operation=publishAsTextMessage&amp;authKey=*********&amp;secretKey=********&amp;projectId=9071a38e7f6a4ba7b7bcbeb7d4ea6efc&amp;region=cn-north-4"/>
-        </route>
+   <from uri="direct:triggerRoute" />
+   <setProperty name="CamelHwCloudSmnSubject">
+      <constant>this is my subjectline</constant>
+   </setProperty>
+   <setProperty name="CamelHwCloudSmnTopic">
+      <constant>reji-test</constant>
+   </setProperty>
+   <setProperty name="CamelHwCloudSmnMessageTtl">
+      <constant>60</constant>
+   </setProperty>
+   <to 
uri="hwcloud-smn:publishMessageService?operation=publishAsTextMessage&amp;authKey=*********&amp;secretKey=********&amp;projectId=9071a38e7f6a4ba7b7bcbeb7d4ea6efc&amp;region=cn-north-4"
 />
+</route>
 
--------------------------------------------------------------------------------
 
 
@@ -191,16 +192,16 @@ Check the following code snippets
 
 [source,xml]
 ----
-   <bean id="myServiceKeyConfig" 
class="org.apache.camel.component.huaweicloud.smn.models.ServiceKeys">
-       <property name="authenticationKey" value="your_auth_key"/>
-       <property name="secretKey" value="your_secret_key"/>
-   </bean>
+<bean id="myServiceKeyConfig" 
class="org.apache.camel.component.huaweicloud.smn.models.ServiceKeys">
+   <property name="authenticationKey" value="your_auth_key" />
+   <property name="secretKey" value="your_secret_key" />
+</bean>
 ----
 [source,java]
 
--------------------------------------------------------------------------------
 from("direct:triggerRoute")
-.setProperty(SmnProperties.NOTIFICATION_SUBJECT, constant("Notification 
Subject"))
-.setProperty(SmnProperties.NOTIFICATION_TOPIC_NAME,constant(testConfiguration.getProperty("topic")))
-.setProperty(SmnProperties.NOTIFICATION_TTL, constant(60))
-.to("hwcloud-smn:publishMessageService?operation=publishAsTextMessage&projectId=9071a38e7f6a4ba7b7bcbeb7d4ea6efc&region=cn-north-4&serviceKeys=#myServiceKeyConfig")
+ .setProperty(SmnProperties.NOTIFICATION_SUBJECT, constant("Notification 
Subject"))
+ 
.setProperty(SmnProperties.NOTIFICATION_TOPIC_NAME,constant(testConfiguration.getProperty("topic")))
+ .setProperty(SmnProperties.NOTIFICATION_TTL, constant(60))
+ 
.to("hwcloud-smn:publishMessageService?operation=publishAsTextMessage&projectId=9071a38e7f6a4ba7b7bcbeb7d4ea6efc&region=cn-north-4&serviceKeys=#myServiceKeyConfig")
 
--------------------------------------------------------------------------------

Reply via email to