camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r919042 - in /websites/production/camel/content: cache/main.pageCache rest-dsl.html
Date Mon, 11 Aug 2014 14:18:26 GMT
Author: buildbot
Date: Mon Aug 11 14:18:26 2014
New Revision: 919042

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/rest-dsl.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/rest-dsl.html
==============================================================================
--- websites/production/camel/content/rest-dsl.html (original)
+++ websites/production/camel/content/rest-dsl.html Mon Aug 11 14:18:26 2014
@@ -249,7 +249,7 @@ public class UserPojo {
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[restConfiguration().component(&quot;spark-rest&quot;).port(9091).componentProperty(&quot;foo&quot;,
&quot;123&quot;);]]></script>
 </div></div><p><span style="line-height: 1.4285715;"><br clear="none"></span></p><p><span
style="line-height: 1.4285715;">And with XML DSL</span></p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;restConfiguration
component=&quot;spark-rest&quot; port=&quot;9091&quot;&gt; &lt;componentProperty
key=&quot;foo&quot; value=&quot;123&quot;/&gt; &lt;/restConfiguration&gt;]]></script>
-</div></div><p><span style="line-height: 1.4285715;"><br clear="none"></span></p><p>You
can configure properties on these levels.&#160;</p><ul><li>component
- Is used to set any options on the Component class. You can also configure these directly
on the component.</li><li>endpoint - Is used set any option on the endpoint level.
Many of the Camel components has many options you can set on endpoint level.</li><li>consumer
- Is used to set any option on the consumer level. Some components has consumer options, which
you can also configure from endpoint level by prefixing the option with "consumer."&#160;</li><li>data
format - Is used to set any option on the data formats. For example to enable pretty print
in the json data format.</li></ul><p>You can set multiple options of the
same level, so you can can for example configure 2 component options, and 3 endpoint options
etc.</p><h3 id="RestDSL-IntegrationaCamelcomponentwithRestDSL">Integration a Camel
component with Rest DSL</h3><p>Any
  Apache Camel component can integrate with the Rest DSL if they can be used as a REST service
(eg as a REST consumer in Camel lingo). To integrate with the Rest DSL, then the component
should implement the&#160;<code>org.apache.camel.spi.RestConsumerFactory</code>.
The Rest DSL will then invoke the&#160;<code>createConsumer</code> method
when it setup the Camel routes from the defined DSL. The component should then implement logic
to create a Camel consumer that exposes the REST services based on the given parameters, such
as path, verb, and other options. For example see the source code for camel-restlet, camel-spark-rest.</p><h3
id="RestDSL-SwaggerAPI">Swagger API</h3><p>The Rest DSL supports <a shape="rect"
class="unresolved" href="#">Swagge</a>r&#160;by the&#160;<code>camel-swagger</code>
module. See more details at &#160;<a shape="rect" href="swagger.html">Swagger</a>&#160;and
the&#160;<code>camel-example-servlet-rest-tomcat</code> example from the Apache
Camel distribution.</p
 ><h3 id="RestDSL-SeeAlso">See Also</h3><p><a shape="rect" href="dsl.html">DSL</a></p><p><a
shape="rect" href="rest.html">Rest</a></p><p><a shape="rect" href="swagger.html">Swagger</a></p><p><a
shape="rect" href="spark-rest.html">Spark-rest</a></p><p><a shape="rect"
href="how-do-i-import-rests-from-other-xml-files.html">How do I import rests from other
XML files</a></p></div>
+</div></div><p><span style="line-height: 1.4285715;"><br clear="none"></span></p><p>You
can configure properties on these levels.&#160;</p><ul><li>component
- Is used to set any options on the Component class. You can also configure these directly
on the component.</li><li>endpoint - Is used set any option on the endpoint level.
Many of the Camel components has many options you can set on endpoint level.</li><li>consumer
- Is used to set any option on the consumer level. Some components has consumer options, which
you can also configure from endpoint level by prefixing the option with "consumer."&#160;</li><li>data
format - Is used to set any option on the data formats. For example to enable pretty print
in the json data format.</li></ul><p>You can set multiple options of the
same level, so you can can for example configure 2 component options, and 3 endpoint options
etc.</p><h3 id="RestDSL-IntegrationaCamelcomponentwithRestDSL">Integration a Camel
component with Rest DSL</h3><p>Any
  Apache Camel component can integrate with the Rest DSL if they can be used as a REST service
(eg as a REST consumer in Camel lingo). To integrate with the Rest DSL, then the component
should implement the&#160;<code>org.apache.camel.spi.RestConsumerFactory</code>.
The Rest DSL will then invoke the&#160;<code>createConsumer</code> method
when it setup the Camel routes from the defined DSL. The component should then implement logic
to create a Camel consumer that exposes the REST services based on the given parameters, such
as path, verb, and other options. For example see the source code for camel-restlet, camel-spark-rest.</p><h3
id="RestDSL-SwaggerAPI">Swagger API</h3><p>The Rest DSL supports <a shape="rect"
href="swagger.html">Swagger</a>&#160;by the&#160;<code>camel-swagger</code>
module. See more details at &#160;<a shape="rect" href="swagger.html">Swagger</a>&#160;and
the&#160;<code>camel-example-servlet-rest-tomcat</code> example from the Apache
Camel distribution.</p><h3 id=
 "RestDSL-SeeAlso">See Also</h3><p><a shape="rect" href="dsl.html">DSL</a></p><p><a
shape="rect" href="rest.html">Rest</a></p><p><a shape="rect" href="swagger.html">Swagger</a></p><p><a
shape="rect" href="spark-rest.html">Spark-rest</a></p><p><a shape="rect"
href="how-do-i-import-rests-from-other-xml-files.html">How do I import rests from other
XML files</a></p></div>
         </td>
         <td valign="top">
           <div class="navigation">



Mime
View raw message