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 2012/06/30 18:21:32 UTC

svn commit: r823847 - in /websites/production/camel/content: book-component-appendix.html book-in-one-page.html cache/main.pageCache jetty.html

Author: buildbot
Date: Sat Jun 30 16:21:31 2012
New Revision: 823847

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/cache/main.pageCache
    websites/production/camel/content/jetty.html

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 Jun 30 16:21:31 2012
@@ -8263,7 +8263,7 @@ from(<span class="code-quote">"timer:<sp
 
 <h2><a shape="rect" name="BookComponentAppendix-JettyComponent"></a>Jetty Component</h2>
 
-<p>The <b>jetty</b> component provides HTTP-based <a shape="rect" href="endpoint.html" title="Endpoint">endpoints</a> for consuming HTTP requests. That is, the Jetty component behaves as a simple Web server.<br clear="none">
+<p>The <b>jetty</b> component provides HTTP-based <a shape="rect" href="endpoint.html" title="Endpoint">endpoints</a> for consuming and producing HTTP requests. That is, the Jetty component behaves as a simple Web server.<br clear="none">
 Jetty can also be used as a http client which mean you can also use it with Camel as a producer.</p>
 
 <div class="panelMacro"><table class="tipMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Upgrading from Jetty 6 to 7</b><br clear="none">You can read more about upgrading Jetty <a shape="rect" class="external-link" href="http://wiki.eclipse.org/Jetty/Howto/Upgrade_from_Jetty_6_to_Jetty_7" rel="nofollow">here</a></td></tr></table></div>
@@ -8300,10 +8300,7 @@ From Camel 2.2, it also uses (Exchange.H
 
 <h3><a shape="rect" name="BookComponentAppendix-Usage"></a>Usage</h3>
 
-<p>The Jetty component only supports consumer endpoints. Therefore a Jetty endpoint URI should be used only as the <b>input</b> for a Camel route (in a <tt>from()</tt> DSL call). To issue HTTP requests against other HTTP endpoints, use the <a shape="rect" href="http.html" title="HTTP">HTTP Component</a></p>
-
-
-
+<p>The Jetty component supports both consumer and producer endpoints. Another option for producing to other HTTP endpoints, is to use the <a shape="rect" href="http.html" title="HTTP">HTTP Component</a></p>
 
 <h3><a shape="rect" name="BookComponentAppendix-ComponentOptions"></a>Component Options</h3>
 
@@ -8313,8 +8310,30 @@ From Camel 2.2, it also uses (Exchange.H
 </div>
 </div>
 
+<h3><a shape="rect" name="BookComponentAppendix-ProducerExample"></a>Producer Example</h3>
 
-<h3><a shape="rect" name="BookComponentAppendix-Sample"></a>Sample</h3>
+<p>The following is a basic example of how to send an HTTP request to an existing HTTP endpoint.</p>
+
+<p>in Java DSL</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+from(<span class="code-quote">"direct:start"</span>).to(<span class="code-quote">"jetty:<span class="code-comment">//http://www.google.com"</span>);</span>
+</pre>
+</div></div>
+
+<p>or in Spring XML</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+    <span class="code-tag">&lt;from uri=<span class="code-quote">"direct:start"</span>/&gt;</span>
+    <span class="code-tag">&lt;to uri=<span class="code-quote">"jetty://http://www.google.com"</span>/&gt;</span>
+<span class="code-tag">&lt;route&gt;</span>
+</pre>
+</div></div>
+
+<h3><a shape="rect" name="BookComponentAppendix-ConsumerExample"></a>Consumer Example</h3>
 
 <p>In this sample we define a route that exposes a HTTP service at <tt><a shape="rect" class="external-link" href="http://localhost:8080/myapp/myservice" rel="nofollow">http://localhost:8080/myapp/myservice</a></tt>:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">

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 Jun 30 16:21:31 2012
@@ -28711,7 +28711,7 @@ from(<span class="code-quote">"timer:<sp
 
 <h2><a shape="rect" name="BookInOnePage-JettyComponent"></a>Jetty Component</h2>
 
-<p>The <b>jetty</b> component provides HTTP-based <a shape="rect" href="endpoint.html" title="Endpoint">endpoints</a> for consuming HTTP requests. That is, the Jetty component behaves as a simple Web server.<br clear="none">
+<p>The <b>jetty</b> component provides HTTP-based <a shape="rect" href="endpoint.html" title="Endpoint">endpoints</a> for consuming and producing HTTP requests. That is, the Jetty component behaves as a simple Web server.<br clear="none">
 Jetty can also be used as a http client which mean you can also use it with Camel as a producer.</p>
 
 <div class="panelMacro"><table class="tipMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Upgrading from Jetty 6 to 7</b><br clear="none">You can read more about upgrading Jetty <a shape="rect" class="external-link" href="http://wiki.eclipse.org/Jetty/Howto/Upgrade_from_Jetty_6_to_Jetty_7" rel="nofollow">here</a></td></tr></table></div>
@@ -28748,10 +28748,7 @@ From Camel 2.2, it also uses (Exchange.H
 
 <h3><a shape="rect" name="BookInOnePage-Usage"></a>Usage</h3>
 
-<p>The Jetty component only supports consumer endpoints. Therefore a Jetty endpoint URI should be used only as the <b>input</b> for a Camel route (in a <tt>from()</tt> DSL call). To issue HTTP requests against other HTTP endpoints, use the <a shape="rect" href="http.html" title="HTTP">HTTP Component</a></p>
-
-
-
+<p>The Jetty component supports both consumer and producer endpoints. Another option for producing to other HTTP endpoints, is to use the <a shape="rect" href="http.html" title="HTTP">HTTP Component</a></p>
 
 <h3><a shape="rect" name="BookInOnePage-ComponentOptions"></a>Component Options</h3>
 
@@ -28761,8 +28758,30 @@ From Camel 2.2, it also uses (Exchange.H
 </div>
 </div>
 
+<h3><a shape="rect" name="BookInOnePage-ProducerExample"></a>Producer Example</h3>
 
-<h3><a shape="rect" name="BookInOnePage-Sample"></a>Sample</h3>
+<p>The following is a basic example of how to send an HTTP request to an existing HTTP endpoint.</p>
+
+<p>in Java DSL</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+from(<span class="code-quote">"direct:start"</span>).to(<span class="code-quote">"jetty:<span class="code-comment">//http://www.google.com"</span>);</span>
+</pre>
+</div></div>
+
+<p>or in Spring XML</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+    <span class="code-tag">&lt;from uri=<span class="code-quote">"direct:start"</span>/&gt;</span>
+    <span class="code-tag">&lt;to uri=<span class="code-quote">"jetty://http://www.google.com"</span>/&gt;</span>
+<span class="code-tag">&lt;route&gt;</span>
+</pre>
+</div></div>
+
+<h3><a shape="rect" name="BookInOnePage-ConsumerExample"></a>Consumer Example</h3>
 
 <p>In this sample we define a route that exposes a HTTP service at <tt><a shape="rect" class="external-link" href="http://localhost:8080/myapp/myservice" rel="nofollow">http://localhost:8080/myapp/myservice</a></tt>:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">

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

Modified: websites/production/camel/content/jetty.html
==============================================================================
--- websites/production/camel/content/jetty.html (original)
+++ websites/production/camel/content/jetty.html Sat Jun 30 16:21:31 2012
@@ -77,7 +77,7 @@
         <td valign="top" width="100%">
 <div class="wiki-content maincontent"><h2><a shape="rect" name="Jetty-JettyComponent"></a>Jetty Component</h2>
 
-<p>The <b>jetty</b> component provides HTTP-based <a shape="rect" href="endpoint.html" title="Endpoint">endpoints</a> for consuming HTTP requests. That is, the Jetty component behaves as a simple Web server.<br clear="none">
+<p>The <b>jetty</b> component provides HTTP-based <a shape="rect" href="endpoint.html" title="Endpoint">endpoints</a> for consuming and producing HTTP requests. That is, the Jetty component behaves as a simple Web server.<br clear="none">
 Jetty can also be used as a http client which mean you can also use it with Camel as a producer.</p>
 
 <div class="panelMacro"><table class="tipMacro"><colgroup span="1"><col span="1" width="24"><col span="1"></colgroup><tr><td colspan="1" rowspan="1" valign="top"><img align="middle" src="https://cwiki.apache.org/confluence/images/icons/emoticons/check.gif" width="16" height="16" alt="" border="0"></td><td colspan="1" rowspan="1"><b>Upgrading from Jetty 6 to 7</b><br clear="none">You can read more about upgrading Jetty <a shape="rect" class="external-link" href="http://wiki.eclipse.org/Jetty/Howto/Upgrade_from_Jetty_6_to_Jetty_7" rel="nofollow">here</a></td></tr></table></div>
@@ -114,10 +114,7 @@ From Camel 2.2, it also uses (Exchange.H
 
 <h3><a shape="rect" name="Jetty-Usage"></a>Usage</h3>
 
-<p>The Jetty component only supports consumer endpoints. Therefore a Jetty endpoint URI should be used only as the <b>input</b> for a Camel route (in a <tt>from()</tt> DSL call). To issue HTTP requests against other HTTP endpoints, use the <a shape="rect" href="http.html" title="HTTP">HTTP Component</a></p>
-
-
-
+<p>The Jetty component supports both consumer and producer endpoints. Another option for producing to other HTTP endpoints, is to use the <a shape="rect" href="http.html" title="HTTP">HTTP Component</a></p>
 
 <h3><a shape="rect" name="Jetty-ComponentOptions"></a>Component Options</h3>
 
@@ -127,8 +124,30 @@ From Camel 2.2, it also uses (Exchange.H
 </div>
 </div>
 
+<h3><a shape="rect" name="Jetty-ProducerExample"></a>Producer Example</h3>
+
+<p>The following is a basic example of how to send an HTTP request to an existing HTTP endpoint.</p>
+
+<p>in Java DSL</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java">
+from(<span class="code-quote">"direct:start"</span>).to(<span class="code-quote">"jetty:<span class="code-comment">//http://www.google.com"</span>);</span>
+</pre>
+</div></div>
+
+<p>or in Spring XML</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+    <span class="code-tag">&lt;from uri=<span class="code-quote">"direct:start"</span>/&gt;</span>
+    <span class="code-tag">&lt;to uri=<span class="code-quote">"jetty://http://www.google.com"</span>/&gt;</span>
+<span class="code-tag">&lt;route&gt;</span>
+</pre>
+</div></div>
 
-<h3><a shape="rect" name="Jetty-Sample"></a>Sample</h3>
+<h3><a shape="rect" name="Jetty-ConsumerExample"></a>Consumer Example</h3>
 
 <p>In this sample we define a route that exposes a HTTP service at <tt><a shape="rect" class="external-link" href="http://localhost:8080/myapp/myservice" rel="nofollow">http://localhost:8080/myapp/myservice</a></tt>:</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">