Modified: websites/production/camel/content/undertow.html
==============================================================================
--- websites/production/camel/content/undertow.html (original)
+++ websites/production/camel/content/undertow.html Thu Sep 14 19:25:46 2017
@@ -86,7 +86,7 @@
         <tr>
         <td valign="top" width="100%">
 <div class="wiki-content maincontent"><h2 
id="Undertow-UndertowComponent">Undertow Component</h2><p><strong>Available as 
of Camel 2.16</strong></p><p>The <strong>undertow</strong> component provides 
HTTP-based <a shape="rect" href="endpoint.html">endpoints</a> for consuming and 
producing HTTP requests. That is, the Undertow component behaves as a simple 
Web server.<br clear="none"> Undertow can also be used as a http client which 
mean you can also use it with Camel as a producer.</p><p>Maven users will need 
to add the following dependency to their <code>pom.xml</code> for this 
component:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;dependency&gt;
     &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
     &lt;artifactId&gt;camel-undertow&lt;/artifactId&gt;
     &lt;version&gt;x.x.x&lt;/version&gt;
@@ -106,13 +106,13 @@
 <script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[from(&quot;direct:start&quot;).to(&quot;undertow:http://www.google.com&quot;);
 ]]></script>
 </div></div><p>or in Spring XML</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
     &lt;from uri=&quot;direct:start&quot;/&gt;
     &lt;to uri=&quot;undertow:http://www.google.com&quot;/&gt;
 &lt;route&gt;
 ]]></script>
 </div></div><h3 id="Undertow-ConsumerExample">Consumer Example</h3><p>In this 
sample we define a route that exposes a HTTP service at <code><a shape="rect" 
class="external-link" href="http://localhost:8080/myapp/myservice"; 
rel="nofollow">http://localhost:8080/myapp/myservice</a></code>:</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="brush: xml; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
+<script class="brush: java; gutter: false; theme: Default" 
type="syntaxhighlighter"><![CDATA[&lt;route&gt;
   &lt;from uri=&quot;undertow:http://localhost:8080/myapp/myservice&quot;/&gt;
   &lt;to uri=&quot;bean:myBean&quot;/&gt;
 &lt;/route&gt;]]></script>


Reply via email to