You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2019/02/09 19:24:56 UTC

svn commit: r1040205 - in /websites/production/camel/content: ./ tutorial-osgi-camel-part1.data/

Author: buildbot
Date: Sat Feb  9 19:24:56 2019
New Revision: 1040205

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/how-do-i-retrieve-the-thrown-exception-during-processing-an-exchange.html
    websites/production/camel/content/publish-subscribe-channel.html
    websites/production/camel/content/siteindex.html
    websites/production/camel/content/spark-rest.html
    websites/production/camel/content/tutorial-osgi-camel-part1.data/tutorial-osgi-camel-part1.zip

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 Sat Feb  9 19:24:56 2019
@@ -3724,35 +3724,14 @@ but the following listed types were not
 <h3 id="BookComponentAppendix-MessageHeaders.11">Message Headers</h3><p>The following message headers can be used to affect the behavior of the component</p><div class="confluenceTableSmall conf-macro output-block" data-hasbody="true" data-macro-name="div"><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>Description</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>CamelLanguageScript</code></p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>The script to execute provided in the header. Takes precedence over script configured on the endpoint.</p></td></tr></tbody></table></div></div>
 
 
-<h3 id="BookComponentAppendix-Examples.11">Examples</h3><p>For example you can use the <a shape="rect" href="simple.html">Simple</a> language to <a shape="rect" href="message-translator.html">Message Translator</a> a message:Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'</p><pre class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup">
-String script = URLEncoder.encode("Hello ${body}", "UTF-8");
-from("direct:start").to("language:simple:" + script).to("mock:result");
-</pre>In case you want to convert the message body type you can do this as well:Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'<pre class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup">
-String script = URLEncoder.encode("${mandatoryBodyAs(String)}", "UTF-8");
-from("direct:start").to("language:simple:" + script).to("mock:result");
-</pre>You can also use the <a shape="rect" href="groovy.html">Groovy</a> language, such as this example where the input message will by multiplied with 2:Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'<pre class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup">
+<h3 id="BookComponentAppendix-Examples.11">Examples</h3><p>For example you can use the <a shape="rect" href="simple.html">Simple</a> language to <a shape="rect" href="message-translator.html">Message Translator</a> a message:</p><div class="error conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>In case you want to convert the message body type you can do this as well:<div class="error conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>You can also use the <a shape="rect" href="groovy.html">Groovy</a> language, such as this example where the input message will by multiplied with 2:Error rendering macro 'code': Invalid value specified for parameter 'java.la
 ng.NullPointerException'<pre class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup">
 String script = URLEncoder.encode("request.body * 2", "UTF-8");
 from("direct:start").to("language:groovy:" + script).to("mock:result");
 </pre>You can also provide the script as a header as shown below. Here we use <a shape="rect" href="xpath.html">XPath</a> language to extract the text from the <code>&lt;foo&gt;</code> tag.<p> </p><div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: java; gutter: false; theme: Default" data-theme="Default">Object out = producer.requestBodyAndHeader("language:xpath", "&lt;foo&gt;Hello World&lt;/foo&gt;", Exchange.LANGUAGE_SCRIPT, "/foo/text()");
 assertEquals("Hello World", out);
 </pre>
-</div></div><h3 id="BookComponentAppendix-Loadingscriptsfromresources">Loading scripts from resources</h3><p><strong>Available as of Camel 2.9</strong></p><p>You can specify a resource uri for a script to load in either the endpoint uri, or in the <code>Exchange.LANGUAGE_SCRIPT</code> header.<br clear="none"> The uri must start with one of the following schemes: file:, classpath:, or http:</p><p>For example to load a script from the classpath:Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'</p><pre class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup">
-from("direct:start")
-    // load the script from the classpath
-    .to("language:simple:classpath:org/apache/camel/component/language/mysimplescript.txt")
-    .to("mock:result");
-</pre>By default the script is loaded once and cached. However you can disable the <code>contentCache</code> option and have the script loaded on each evaluation.<br clear="none"> For example if the file myscript.txt is changed on disk, then the updated script is used:Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'<pre class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup">
-from("direct:start")
-    // the script will be loaded on each message, as we disabled cache
-    .to("language:simple:file:target/script/myscript.txt?contentCache=false")
-    .to("mock:result");
-</pre>From <strong>Camel 2.11</strong> onwards you can refer to the resource similar to the other <a shape="rect" href="language.html">Language</a>s in Camel by prefixing with <code>"resource:"</code> as shown below:Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'<pre class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup">
-from("direct:start")
-    // load the script from the classpath
-    .to("language:simple:resource:classpath:org/apache/camel/component/language/mysimplescript.txt")
-    .to("mock:result");
-</pre><div class="conf-macro output-block" data-hasbody="false" data-macro-name="include"><h3 id="BookComponentAppendix-SeeAlso.20">See Also</h3>
+</div></div><h3 id="BookComponentAppendix-Loadingscriptsfromresources">Loading scripts from resources</h3><p><strong>Available as of Camel 2.9</strong></p><p>You can specify a resource uri for a script to load in either the endpoint uri, or in the <code>Exchange.LANGUAGE_SCRIPT</code> header.<br clear="none"> The uri must start with one of the following schemes: file:, classpath:, or http:</p><p>For example to load a script from the classpath:</p><div class="error conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>By default the script is loaded once and cached. However you can disable the <code>contentCache</code> option and have the script loaded on each evaluation.<br clear="none"> For example if the file myscript.txt is changed on disk, then the updated script is used:<div class="error conf-macro output-inline" data
 -hasbody="true" data-macro-name="unmigrated-inline-wiki-markup"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>From <strong>Camel 2.11</strong> onwards you can refer to the resource similar to the other <a shape="rect" href="language.html">Language</a>s in Camel by prefixing with <code>"resource:"</code> as shown below:<div class="error conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div><div class="conf-macro output-block" data-hasbody="false" data-macro-name="include"><h3 id="BookComponentAppendix-SeeAlso.20">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></div><p> </p><ul class="alternate"><li><a shape="rect" href="languages.html">Languages</a></li><li><a shape="rect" href="routing-slip.html">Routing Slip</a></li><li><a shape="rect" href="dynamic-router.html">Dynamic Router</a></li><li><a shape="rect" href="script.html">Script</a></li></ul></div> <div class="conf-macro output-block" data-hasbody="false" data-macro-name="include"><h2 id="BookComponentAppendix-LDAPComponent">LDAP Component</h2><p>The <strong>ldap</strong> component allows you to perform searches in LDAP servers using filters as the message payload.<br clear="none"> This component uses standard JNDI (<code>javax.naming</code> package) to access the server.</p><p>Maven users will need to add the foll
 owing dependency to their <code>pom.xml</code> for this component:</p><div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: java; gutter: false; theme: Default" data-theme="Default">&lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;

Modified: websites/production/camel/content/book-in-one-page.html
==============================================================================
--- websites/production/camel/content/book-in-one-page.html (original)
+++ websites/production/camel/content/book-in-one-page.html Sat Feb  9 19:24:56 2019
@@ -4407,11 +4407,11 @@ So we completed the last piece in the pi
 <p>This example has been removed from <strong>Camel 2.9</strong> onwards. Apache Axis 1.4 is a very old and unsupported framework. We encourage users to use <a shape="rect" href="cxf.html">CXF</a> instead of Axis.</p></div></div>
 
 <div class="conf-macro output-block" data-hasbody="false" data-macro-name="toc"><style type="text/css">/*<![CDATA[*/
-div.rbtoc1549732785637 {padding: 0px;}
-div.rbtoc1549732785637 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1549732785637 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1549740057118 {padding: 0px;}
+div.rbtoc1549740057118 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1549740057118 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style><div class="toc-macro rbtoc1549732785637">
+/*]]>*/</style><div class="toc-macro rbtoc1549740057118">
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-TutorialusingAxis1.4withApacheCamel">Tutorial using Axis 1.4 with Apache Camel</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-Prerequisites">Prerequisites</a></li><li><a shape="rect" href="#BookInOnePage-Distribution">Distribution</a></li><li><a shape="rect" href="#BookInOnePage-Introduction">Introduction</a></li><li><a shape="rect" href="#BookInOnePage-SettinguptheprojecttorunAxis">Setting up the project to run Axis</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#BookInOnePage-Maven2">Maven 2</a></li><li><a shape="rect" href="#BookInOnePage-wsdl">wsdl</a></li><li><a shape="rect" href="#BookInOnePage-ConfiguringAxis">Configuring Axis</a></li><li><a shape="rect" href="#BookInOnePage-RunningtheExample">Running the Example</a></li></ul>

Modified: websites/production/camel/content/how-do-i-retrieve-the-thrown-exception-during-processing-an-exchange.html
==============================================================================
--- websites/production/camel/content/how-do-i-retrieve-the-thrown-exception-during-processing-an-exchange.html (original)
+++ websites/production/camel/content/how-do-i-retrieve-the-thrown-exception-during-processing-an-exchange.html Sat Feb  9 19:24:56 2019
@@ -97,43 +97,7 @@
 
 <p>From the returned Exchange you can test if its failed and get the caused exception. This is illustrated in the code sample:</p>
 
-Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'<pre class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup">
-@Test
-public void testBeanInvocation() {
-    int result = (Integer) template.sendBody("direct:input", ExchangePattern.InOut, "Hello London");
-    assertEquals(1, result);
-}
-
-@Test
-public void testBeanInvocationFailure() {
-    // must create an exchange to get the result as an exchange where we can get the caused exception
-    Exchange exchange = getMandatoryEndpoint("direct:input").createExchange(ExchangePattern.InOut);
-    exchange.getIn().setBody("Hello Paris");
-
-    Exchange out = template.send("direct:input", exchange);
-    assertTrue("Should be failed", out.isFailed());
-    assertTrue("Should be IllegalArgumentException", out.getException() instanceof IllegalArgumentException);
-    assertEquals("Forced exception", out.getException().getMessage());
-}
-
-protected RouteBuilder createRouteBuilder() throws Exception {
-    return new RouteBuilder() {
-        public void configure() throws Exception {
-            from("direct:input").bean(new ExceptionBean());
-        }
-    };
-}
-
-public static class ExceptionBean {
-    public int doSomething(String request) throws Exception {
-        if (request.equals("Hello London")) {
-            return 1;
-        } else {
-            throw new IllegalArgumentException("Forced exception");
-        }
-    }
-}
-</pre></div>
+<div class="error conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div></div>
         </td>
         <td valign="top">
           <div class="navigation">

Modified: websites/production/camel/content/publish-subscribe-channel.html
==============================================================================
--- websites/production/camel/content/publish-subscribe-channel.html (original)
+++ websites/production/camel/content/publish-subscribe-channel.html Sat Feb  9 19:24:56 2019
@@ -103,16 +103,7 @@
 <p>Another option is to explicitly list the publish-subscribe relationship in your routing logic; this keeps the producer and consumer decoupled but lets you control the fine grained routing configuration using the <a shape="rect" href="dsl.html">DSL</a> or <a shape="rect" href="xml-configuration.html">Xml Configuration</a>.</p>
 
 <p><strong>Using the <a shape="rect" href="fluent-builders.html">Fluent Builders</a></strong></p>
-Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'<pre class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup">
-RouteBuilder builder = new RouteBuilder() {
-    public void configure() {
-        errorHandler(deadLetterChannel("mock:error"));
-
-        from("direct:a")
-            .multicast().to("direct:b", "direct:c", "direct:d");
-    }
-};
-</pre>
+<div class="error conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>
 
 <p><strong>Using the <a shape="rect" href="spring-xml-extensions.html">Spring XML Extensions</a></strong></p>
 Error rendering macro 'code': Invalid value specified for parameter 'java.lang.NullPointerException'<pre class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup">

Modified: websites/production/camel/content/siteindex.html
==============================================================================
--- websites/production/camel/content/siteindex.html (original)
+++ websites/production/camel/content/siteindex.html Sat Feb  9 19:24:56 2019
@@ -92,14 +92,14 @@
 <div class="wiki-content maincontent">
 <span class="conf-macro output-inline" data-hasbody="true" data-macro-name="unmigrated-inline-wiki-markup"></span><h2>Space Index</h2>
 <div class="index-macro-info">
-    <h4>Total number of pages: 959</h4>
+    <h4>Total number of pages: 960</h4>
             <span class="excerpt-info">
             <span class="aui-icon aui-icon-small aui-iconfont-info">info</span>
             Page excerpts are hidden because there are more than 200 pages
         </span>
     </div>
 <table class="grid" width="99%" cellspacing="0"><tbody><tr><td colspan="2" rowspan="1">
-         <table width="100%"><tbody><tr><td colspan="1" rowspan="1"><a shape="rect" href="#index-0-9">0-9</a> ... 0</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-A">A</a> ... 39</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-B">B</a> ... 43</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-C">C</a> ... 222</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-D">D</a> ... 32</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-E">E</a> ... 33</td></tr><tr><td colspan="1" rowspan="1"><a shape="rect" href="#index-F">F</a> ... 15</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-G">G</a> ... 33</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-H">H</a> ... 88</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-I">I</a> ... 19</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-J">J</a> ... 32</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-K">K</a> ... 6</td></tr><tr><td colspan=
 "1" rowspan="1"><a shape="rect" href="#index-L">L</a> ... 20</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-M">M</a> ... 36</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-N">N</a> ... 12</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-O">O</a> ... 7</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-P">P</a> ... 27</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-Q">Q</a> ... 5</td></tr><tr><td colspan="1" rowspan="1"><a shape="rect" href="#index-R">R</a> ... 33</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-S">S</a> ... 90</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-T">T</a> ... 44</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-U">U</a> ... 19</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-V">V</a> ... 8</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-W">W</a> ... 30</td></tr><tr><td colspan="1" rowspan="1"><a shape="rect" href="#index-X">X</a> ... 
 14</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-Y">Y</a> ... 2</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-Z">Z</a> ... 4</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-%21@%23%24">!@#$</a> ... 0</td><td colspan="1" rowspan="1">&#160;</td><td colspan="1" rowspan="1">&#160;</td></tr></tbody></table>
+         <table width="100%"><tbody><tr><td colspan="1" rowspan="1"><a shape="rect" href="#index-0-9">0-9</a> ... 0</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-A">A</a> ... 39</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-B">B</a> ... 43</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-C">C</a> ... 223</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-D">D</a> ... 32</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-E">E</a> ... 33</td></tr><tr><td colspan="1" rowspan="1"><a shape="rect" href="#index-F">F</a> ... 15</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-G">G</a> ... 33</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-H">H</a> ... 88</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-I">I</a> ... 19</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-J">J</a> ... 32</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-K">K</a> ... 6</td></tr><tr><td colspan=
 "1" rowspan="1"><a shape="rect" href="#index-L">L</a> ... 20</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-M">M</a> ... 36</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-N">N</a> ... 12</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-O">O</a> ... 7</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-P">P</a> ... 27</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-Q">Q</a> ... 5</td></tr><tr><td colspan="1" rowspan="1"><a shape="rect" href="#index-R">R</a> ... 33</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-S">S</a> ... 90</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-T">T</a> ... 44</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-U">U</a> ... 19</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-V">V</a> ... 8</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-W">W</a> ... 30</td></tr><tr><td colspan="1" rowspan="1"><a shape="rect" href="#index-X">X</a> ... 
 14</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-Y">Y</a> ... 2</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-Z">Z</a> ... 4</td><td colspan="1" rowspan="1"><a shape="rect" href="#index-%21@%23%24">!@#$</a> ... 0</td><td colspan="1" rowspan="1">&#160;</td><td colspan="1" rowspan="1">&#160;</td></tr></tbody></table>
         </td></tr><tr valign="top"><td colspan="1" rowspan="1"><h4 style="margin-top: 0px"><a shape="rect" name="index-0-9"></a>0-9</h4>
         </td><td colspan="1" rowspan="1"><h4 style="margin-top: 0px"><a shape="rect" name="index-A"></a>A</h4>
                              <span class="icon aui-icon content-type-page" title="Page">Page:</span>                 <a shape="rect" href="acknowledgment.html">Acknowledgment</a>
@@ -452,6 +452,8 @@
         <br clear="none">
                                          <span class="icon aui-icon content-type-page" title="Page">Page:</span>                 <a shape="rect" href="camel-2214-release.html">Camel 2.21.4 Release</a>
         <br clear="none">
+                                         <span class="icon aui-icon content-type-page" title="Page">Page:</span>                 <a shape="rect" href="camel-2215-release.html">Camel 2.21.5 Release</a>
+        <br clear="none">
                                          <span class="icon aui-icon content-type-page" title="Page">Page:</span>                 <a shape="rect" href="camel-2220-release.html">Camel 2.22.0 Release</a>
         <br clear="none">
                                          <span class="icon aui-icon content-type-page" title="Page">Page:</span>                 <a shape="rect" href="camel-2221-release.html">Camel 2.22.1 Release</a>

Modified: websites/production/camel/content/spark-rest.html
==============================================================================
--- websites/production/camel/content/spark-rest.html (original)
+++ websites/production/camel/content/spark-rest.html Sat Feb  9 19:24:56 2019
@@ -107,10 +107,10 @@
 </div></div><h3 id="Spark-rest-MappingtoCamelMessage">Mapping to Camel Message</h3><p>The Spark Request object is mapped to a Camel Message as a&#160;<code>org.apache.camel.component.sparkrest.SparkMessage</code> which has access to the raw Spark request using the getRequest method. By default the Spark body is mapped to Camel message body, and any HTTP headers / Spark parameters is mapped to Camel Message headers. There is special support for the Spark splat syntax, which is mapped to the Camel message header with key splat.</p><p>For example the given route below uses Spark splat (the asterisk sign)&#160;in the context path which we can access as a header form the Simple language to construct a response message.</p><div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: java; gutter: false; theme: Default" data-theme="Default">  from("spark-rest:get:/hello/*/to/*")
     .transform().simple("Bye big ${header.splat[1]} from ${header.splat[0]}");</pre>
-</div></div><h3 id="Spark-rest-RestDSL"><span style="font-size: 16.0px;line-height: 1.5625;">Rest DSL</span></h3><p>Apache Camel provides a new Rest DSL that allow to define the REST services in a nice REST style. For example we can define a REST hello service as shown below:</p><div class="conf-macro output-block" data-hasbody="true" data-macro-name="auitabs">    
-<div class="contentf aui-tabs horizontal-tabs" id="RestDslTabs" title="Rest DSL">
+</div></div><h3 id="Spark-rest-RestDSL"><span style="font-size: 16.0px;line-height: 1.5625;">Rest DSL</span></h3><p>Apache Camel provides a new Rest DSL that allow to define the REST services in a nice REST style. For example we can define a REST hello service as shown below:</p>    
+<div class="contentf aui-tabs horizontal-tabs conf-macro output-block" id="RestDslTabs" data-hasbody="true" data-macro-name="auitabs" title="Rest DSL">
     <ul class="tabs-menu"></ul>
-    <div class="cfm tabs-pane conf-macro output-block" id="idwK8V17Ps" data-hasbody="true" data-macro-name="auitabspage" data-pane-title="Java">
+    <div class="cfm tabs-pane conf-macro output-block" id="RestDslTabsJava" data-hasbody="true" data-macro-name="auitabspage" data-pane-title="Java">
     <div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: java; gutter: false; theme: Default" data-theme="Default">  return new RouteBuilder() {
       @Override
@@ -122,7 +122,7 @@
 </div></div>
 
     
-</div><div class="cfm tabs-pane conf-macro output-block" id="idQ4IO5Y8Z" data-hasbody="true" data-macro-name="auitabspage" data-pane-title="XML">
+</div><div class="cfm tabs-pane conf-macro output-block" id="RestDslTabsXml" data-hasbody="true" data-macro-name="auitabspage" data-pane-title="XML">
     <div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-name="code" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: java; gutter: false; theme: Default" data-theme="Default">  &lt;camelContext xmlns="http://camel.apache.org/schema/spring"&gt;
     &lt;rest uri="/hello/{me}"&gt;
@@ -139,8 +139,7 @@
 
     
 </div>
-</div>
-<div style="clear:both"><p> </p></div></div><p><span style="line-height: 1.4285715;">See more details at the&#160;</span><a shape="rect" href="rest-dsl.html">Rest DSL</a><span style="line-height: 1.4285715;">.</span></p><h3 id="Spark-rest-Moreexamples"><span style="font-size: 16.0px;line-height: 1.5625;">More examples</span></h3><p>There is a <strong>camel-example-spark-rest-tomcat</strong> example in the Apache Camel distribution, that demonstrates how to use camel-spark-rest in a web application that can be deployed on Apache Tomcat, or similar web containers.</p><p></p><div class="conf-macro output-block" data-hasbody="false" data-macro-name="include"><h3 id="Spark-rest-SeeAlso">See Also</h3>
+</div><p><span style="line-height: 1.4285715;">See more details at the&#160;</span><a shape="rect" href="rest-dsl.html">Rest DSL</a><span style="line-height: 1.4285715;">.</span></p><h3 id="Spark-rest-Moreexamples"><span style="font-size: 16.0px;line-height: 1.5625;">More examples</span></h3><p>There is a <strong>camel-example-spark-rest-tomcat</strong> example in the Apache Camel distribution, that demonstrates how to use camel-spark-rest in a web application that can be deployed on Apache Tomcat, or similar web containers.</p><p></p><div class="conf-macro output-block" data-hasbody="false" data-macro-name="include"><h3 id="Spark-rest-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></div><ul style="list-style-type: square;"><li><a shape="rect" href="rest.html">Rest</a></li></ul></div>
         </td>
         <td valign="top">

Modified: websites/production/camel/content/tutorial-osgi-camel-part1.data/tutorial-osgi-camel-part1.zip
==============================================================================
Binary files - no diff available.