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 2018/11/17 02:25:40 UTC
svn commit: r1036980 - in /websites/production/camel/content:
cache/main.pageCache java-dsl.html
Author: buildbot
Date: Sat Nov 17 02:25:40 2018
New Revision: 1036980
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/java-dsl.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/java-dsl.html
==============================================================================
--- websites/production/camel/content/java-dsl.html (original)
+++ websites/production/camel/content/java-dsl.html Sat Nov 17 02:25:40 2018
@@ -88,7 +88,7 @@
<tr>
<td valign="top" width="100%">
<div class="wiki-content maincontent"><h2 id="JavaDSL-JavaDSL">Java DSL</h2><p>Apache Camel offers a Java based DSL using the fluent builder style. The Java DSL is available by extending the <a shape="rect" href="routebuilder.html">RouteBuilder</a> class, and implement the <code>configure</code> method.</p><p>This is best illustrate by an example. In the code below we create a new class called <code>MyRouteBuilder</code> that extends the <code>org.apache.camel.builder.RouteBuilder</code> from Camel.<br clear="none"> In the <code>configure</code> method the Java DSL is at our disposal.</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">import org.apache.camel.builder.RouteBuilder;
+<pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: java; gutter: true; theme: Default" data-theme="Default">import org.apache.camel.builder.RouteBuilder;
/**
* A Camel Java DSL Router
@@ -123,7 +123,7 @@ public class MyRouteBuilder extends Rout
.otherwise()
.to("file:target/messages/others");
</pre>
-</div></div><p></p><h2 id="JavaDSL-Routes">Routes</h2><p>Camel supports the definition of routing rules using a Java <a shape="rect" href="dsl.html">DSL</a> (domain specific language) which avoids the need for cumbersome XML using a <a shape="rect" href="routebuilder.html">RouteBuilder</a>.</p><p>For example a simple route can be created as follows.</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">
+</div></div><p></p><div class="conf-macro output-block" data-hasbody="false" data-macro-name="include"><h2 id="JavaDSL-Routes">Routes</h2><p>Camel supports the definition of routing rules using a Java <a shape="rect" href="dsl.html">DSL</a> (domain specific language) which avoids the need for cumbersome XML using a <a shape="rect" href="routebuilder.html">RouteBuilder</a>.</p><p>For example a simple route can be created as follows.</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">RouteBuilder builder = new RouteBuilder() {
public void configure() {
errorHandler(deadLetterChannel("mock:error"));
@@ -186,7 +186,7 @@ RouteBuilder builder = new RouteBuilder(
.process(myProcessor);
}
};</pre>
-</div></div><h3 id="JavaDSL-SeeAlso">See Also</h3><ul class="alternate"><li><a shape="rect" href="dsl.html">DSL</a></li><li><a shape="rect" href="examples.html">Examples</a></li></ul></div>
+</div></div></div><h3 id="JavaDSL-SeeAlso">See Also</h3><ul class="alternate"><li><a shape="rect" href="dsl.html">DSL</a></li><li><a shape="rect" href="examples.html">Examples</a></li></ul></div>
</td>
<td valign="top">
<div class="navigation">