camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1386720 - /camel/trunk/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/xpath/XPathHeaderNameTest.xml
Date Mon, 17 Sep 2012 17:01:07 GMT
Author: davsclaus
Date: Mon Sep 17 17:01:06 2012
New Revision: 1386720

URL: http://svn.apache.org/viewvc?rev=1386720&view=rev
Log:
CAMEL-5619: Added snippet tags for doc

Modified:
    camel/trunk/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/xpath/XPathHeaderNameTest.xml

Modified: camel/trunk/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/xpath/XPathHeaderNameTest.xml
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/xpath/XPathHeaderNameTest.xml?rev=1386720&r1=1386719&r2=1386720&view=diff
==============================================================================
--- camel/trunk/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/xpath/XPathHeaderNameTest.xml
(original)
+++ camel/trunk/components/camel-test-blueprint/src/test/resources/org/apache/camel/test/blueprint/xpath/XPathHeaderNameTest.xml
Mon Sep 17 17:01:06 2012
@@ -21,15 +21,18 @@
            xsi:schemaLocation="
              http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
 
+  <!-- START SNIPPET: e1 -->
   <camelContext id="xpathHeaderNameTest" xmlns="http://camel.apache.org/schema/blueprint">
     <route>
       <from uri="direct:in"/>
       <choice>
         <when>
+          <!-- use headerName attribute to refer to a header -->
           <xpath headerName="invoiceDetails">/invoice/@orderType = 'premium'</xpath>
           <to uri="mock:premium"/>
         </when>
         <when>
+          <!-- use headerName attribute to refer to a header -->
           <xpath headerName="invoiceDetails">/invoice/@orderType = 'standard'</xpath>
           <to uri="mock:standard"/>
         </when>
@@ -39,5 +42,6 @@
       </choice>
     </route>
   </camelContext>
+  <!-- END SNIPPET: e1 -->
 
 </blueprint>
\ No newline at end of file



Mime
View raw message