You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/11/16 11:06:20 UTC

[camel] branch master updated (cb6e8c2 -> 69f30d3)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from cb6e8c2  Upgrade Ehcache to version 3.6.2
     new 732f55a  CAMEL-12759 - Misleading documentation for Netty components - Netty4
     new c065ce1  CAMEL-12759 - Misleading documentation for Netty components - Netty4-http
     new c0ff444  CAMEL-12759 - Misleading documentation for Netty components - Netty
     new 69f30d3  CAMEL-12759 - Misleading documentation for Netty components - Netty-http

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/main/docs/netty-http-component.adoc        |  4 ++--
 .../camel-netty/src/main/docs/netty-component.adoc | 18 +++++++--------
 .../src/main/docs/netty4-http-component.adoc       |  4 ++--
 .../src/main/docs/netty4-component.adoc            | 26 +++++++++++-----------
 4 files changed, 26 insertions(+), 26 deletions(-)


[camel] 03/04: CAMEL-12759 - Misleading documentation for Netty components - Netty

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit c0ff44454b823f2e8f69401ff8c3be3b5af389da
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 16 12:01:23 2018 +0100

    CAMEL-12759 - Misleading documentation for Netty components - Netty
---
 .../camel-netty/src/main/docs/netty-component.adoc     | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/components/camel-netty/src/main/docs/netty-component.adoc b/components/camel-netty/src/main/docs/netty-component.adoc
index f4f6012..b0a56a9 100644
--- a/components/camel-netty/src/main/docs/netty-component.adoc
+++ b/components/camel-netty/src/main/docs/netty-component.adoc
@@ -40,7 +40,7 @@ The URI scheme for a netty component is as follows
 
 [source,java]
 ---------------------------------------
-netty:tcp://localhost:99999[?options]
+netty:tcp://0.0.0.0:99999[?options]
 netty:udp://remotehost:99999/[?options]
 ---------------------------------------
 
@@ -385,7 +385,7 @@ netty.
 ------------------------------------------------------------------
 RouteBuilder builder = new RouteBuilder() {
   public void configure() {
-    from("netty:udp://localhost:5155?sync=true")
+    from("netty:udp://0.0.0.0:5155?sync=true")
       .process(new Processor() {
          public void process(Exchange exchange) throws Exception {
            Poetry poetry = (Poetry) exchange.getIn().getBody();
@@ -403,7 +403,7 @@ RouteBuilder builder = new RouteBuilder() {
 -------------------------------------------
 RouteBuilder builder = new RouteBuilder() {
   public void configure() {
-       from("netty:tcp://localhost:5150")
+       from("netty:tcp://0.0.0.0:5150")
            .to("mock:result");
   }
 };
@@ -457,7 +457,7 @@ Spring DSL based configuration of endpoint
     </camel:keyManagers>
   </camel:sslContextParameters>...
 ...
-  <to uri="netty:tcp://localhost:5150?sync=true&ssl=true&sslContextParameters=#sslContextParameters"/>
+  <to uri="netty:tcp://0.0.0.0:5150?sync=true&ssl=true&sslContextParameters=#sslContextParameters"/>
 ...
 ------------------------------------------------------------------------------------------------------
 
@@ -475,7 +475,7 @@ context.createRegistry(registry);
 context.addRoutes(new RouteBuilder() {
   public void configure() {
       String netty_ssl_endpoint =
-         "netty:tcp://localhost:5150?sync=true&ssl=true&passphrase=#password"
+         "netty:tcp://0.0.0.0:5150?sync=true&ssl=true&passphrase=#password"
          + "&keyStoreFile=#ksf&trustStoreFile=#tsf";
       String return_string =
          "When You Go Home, Tell Them Of Us And Say,"
@@ -561,7 +561,7 @@ written the bye message back to the client:
 
 [source,java]
 --------------------------------------------------------------------------------------------------------
-        from("netty:tcp://localhost:8080").process(new Processor() {
+        from("netty:tcp://0.0.0.0:8080").process(new Processor() {
             public void process(Exchange exchange) throws Exception {
                 String body = exchange.getIn().getBody(String.class);
                 exchange.getOut().setBody("Bye " + body);
@@ -632,7 +632,7 @@ registry.bind("spf", serverPipelineFactory);
 context.addRoutes(new RouteBuilder() {
   public void configure() {
       String netty_ssl_endpoint =
-         "netty:tcp://localhost:5150?serverPipelineFactory=#spf"
+         "netty:tcp://0.0.0.0:5150?serverPipelineFactory=#spf"
       String return_string =
          "When You Go Home, Tell Them Of Us And Say,"
          + "For Your Tomorrow, We Gave Our Today.";
@@ -687,7 +687,7 @@ as shown below:
 [source,xml]
 -----------------------------------------------------------------------------------------------------------------------------------------
     <route>
-      <from uri="netty:tcp://localhost:5021?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;orderedThreadPoolExecutor=false"/>
+      <from uri="netty:tcp://0.0.0.0:5021?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;orderedThreadPoolExecutor=false"/>
       <to uri="log:result"/>
       ...
     </route>
@@ -698,7 +698,7 @@ And if we have another route we can refer to the shared worker pool:
 [source,xml]
 -----------------------------------------------------------------------------------------------------------------------------------------
     <route>
-      <from uri="netty:tcp://localhost:5022?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;orderedThreadPoolExecutor=false"/>
+      <from uri="netty:tcp://0.0.0.0:5022?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;orderedThreadPoolExecutor=false"/>
       <to uri="log:result"/>
       ...
     </route>


[camel] 04/04: CAMEL-12759 - Misleading documentation for Netty components - Netty-http

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 69f30d3921688075fa23f52567445e0db4bc8fa0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 16 12:02:44 2018 +0100

    CAMEL-12759 - Misleading documentation for Netty components - Netty-http
---
 components/camel-netty-http/src/main/docs/netty-http-component.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-netty-http/src/main/docs/netty-http-component.adoc b/components/camel-netty-http/src/main/docs/netty-http-component.adoc
index 1d3641b..2984a0e 100644
--- a/components/camel-netty-http/src/main/docs/netty-http-component.adoc
+++ b/components/camel-netty-http/src/main/docs/netty-http-component.adoc
@@ -42,7 +42,7 @@ The URI scheme for a netty component is as follows
 
 [source,java]
 ------------------------------------------
-netty-http:http://localhost:8080[?options]
+netty-http:http://0.0.0.0:8080[?options]
 ------------------------------------------
 
 You can append query options to the URI in the following format,
@@ -353,7 +353,7 @@ ProducerTemplate as shown below:
 
 [source,java]
 -----------------------------------------------------------------------------------------------------------
-    String out = template.requestBody("netty-http:http://localhost:8080/foo", "Hello World", String.class);
+    String out = template.requestBody("netty-http:http://0.0.0.0:8080/foo", "Hello World", String.class);
     System.out.println(out);
 -----------------------------------------------------------------------------------------------------------
 


[camel] 02/04: CAMEL-12759 - Misleading documentation for Netty components - Netty4-http

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit c065ce18af9c9465f1746ce9f05b58c2dc4fa166
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 16 12:00:26 2018 +0100

    CAMEL-12759 - Misleading documentation for Netty components - Netty4-http
---
 components/camel-netty4-http/src/main/docs/netty4-http-component.adoc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-netty4-http/src/main/docs/netty4-http-component.adoc b/components/camel-netty4-http/src/main/docs/netty4-http-component.adoc
index 6018cbd..144a257 100644
--- a/components/camel-netty4-http/src/main/docs/netty4-http-component.adoc
+++ b/components/camel-netty4-http/src/main/docs/netty4-http-component.adoc
@@ -39,7 +39,7 @@ The URI scheme for a netty component is as follows
 
 [source,java]
 -------------------------------------------
-netty4-http:http://localhost:8080[?options]
+netty4-http:http://0.0.0.0:8080[?options]
 -------------------------------------------
 
 You can append query options to the URI in the following format,
@@ -362,7 +362,7 @@ ProducerTemplate as shown below:
 
 [source,java]
 ------------------------------------------------------------------------------------------------------------
-    String out = template.requestBody("netty4-http:http://localhost:8080/foo", "Hello World", String.class);
+    String out = template.requestBody("netty4-http:http://0.0.0.0:8080/foo", "Hello World", String.class);
     System.out.println(out);
 ------------------------------------------------------------------------------------------------------------
 


[camel] 01/04: CAMEL-12759 - Misleading documentation for Netty components - Netty4

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 732f55adaa89bd8f42b3586880a21b09658710c5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Nov 16 11:58:37 2018 +0100

    CAMEL-12759 - Misleading documentation for Netty components - Netty4
---
 .../src/main/docs/netty4-component.adoc            | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/components/camel-netty4/src/main/docs/netty4-component.adoc b/components/camel-netty4/src/main/docs/netty4-component.adoc
index 0d62964..0fce4ab 100644
--- a/components/camel-netty4/src/main/docs/netty4-component.adoc
+++ b/components/camel-netty4/src/main/docs/netty4-component.adoc
@@ -37,7 +37,7 @@ The URI scheme for a netty component is as follows
 
 [source,text]
 ----
-netty4:tcp://localhost:99999[?options]
+netty4:tcp://0.0.0.0:99999[?options]
 netty4:udp://remotehost:99999/[?options]
 ----
 
@@ -360,7 +360,7 @@ operations.
 ----
 RouteBuilder builder = new RouteBuilder() {
   public void configure() {
-    from("netty4:udp://localhost:5155?sync=true")
+    from("netty4:udp://0.0.0.0:5155?sync=true")
       .process(new Processor() {
          public void process(Exchange exchange) throws Exception {
            Poetry poetry = (Poetry) exchange.getIn().getBody();
@@ -378,7 +378,7 @@ RouteBuilder builder = new RouteBuilder() {
 ----
 RouteBuilder builder = new RouteBuilder() {
   public void configure() {
-       from("netty4:tcp://localhost:5150")
+       from("netty4:tcp://0.0.0.0:5150")
            .to("mock:result");
   }
 };
@@ -432,7 +432,7 @@ Spring DSL based configuration of endpoint
     </camel:keyManagers>
   </camel:sslContextParameters>...
 ...
-  <to uri="netty4:tcp://localhost:5150?sync=true&ssl=true&sslContextParameters=#sslContextParameters"/>
+  <to uri="netty4:tcp://0.0.0.0:5150?sync=true&ssl=true&sslContextParameters=#sslContextParameters"/>
 ...
 ----
 
@@ -450,7 +450,7 @@ context.createRegistry(registry);
 context.addRoutes(new RouteBuilder() {
   public void configure() {
       String netty_ssl_endpoint =
-         "netty4:tcp://localhost:5150?sync=true&ssl=true&passphrase=#password"
+         "netty4:tcp://0.0.0.0:5150?sync=true&ssl=true&passphrase=#password"
          + "&keyStoreFile=#ksf&trustStoreFile=#tsf";
       String return_string =
          "When You Go Home, Tell Them Of Us And Say,"
@@ -578,9 +578,9 @@ a comma separated list or contained in a List e.g.
 
 [source,java]
 ----
- from("direct:multiple-codec").to("netty4:tcp://localhost:{{port}}?encoders=#encoders&sync=false");
+ from("direct:multiple-codec").to("netty4:tcp://0.0.0.0:{{port}}?encoders=#encoders&sync=false");
                 
- from("netty4:tcp://localhost:{{port}}?decoders=#length-decoder,#string-decoder&sync=false").to("mock:multiple-codec");
+ from("netty4:tcp://0.0.0.0:{{port}}?decoders=#length-decoder,#string-decoder&sync=false").to("mock:multiple-codec");
 ----
 
 or via XML.
@@ -590,10 +590,10 @@ or via XML.
 <camelContext id="multiple-netty-codecs-context" xmlns="http://camel.apache.org/schema/spring">
     <route>
         <from uri="direct:multiple-codec"/>
-        <to uri="netty4:tcp://localhost:5150?encoders=#encoders&amp;sync=false"/>
+        <to uri="netty4:tcp://0.0.0.0:5150?encoders=#encoders&amp;sync=false"/>
     </route>
     <route>
-        <from uri="netty4:tcp://localhost:5150?decoders=#length-decoder,#string-decoder&amp;sync=false"/>
+        <from uri="netty4:tcp://0.0.0.0:5150?decoders=#length-decoder,#string-decoder&amp;sync=false"/>
         <to uri="mock:multiple-codec"/>
     </route>
 </camelContext>
@@ -615,7 +615,7 @@ written the bye message back to the client:
 
 [source,java]
 ----
-from("netty4:tcp://localhost:8080").process(new Processor() {
+from("netty4:tcp://0.0.0.0:8080").process(new Processor() {
     public void process(Exchange exchange) throws Exception {
         String body = exchange.getIn().getBody(String.class);
         exchange.getOut().setBody("Bye " + body);
@@ -685,7 +685,7 @@ registry.bind("spf", factory);
 context.addRoutes(new RouteBuilder() {
   public void configure() {
       String netty_ssl_endpoint =
-         "netty4:tcp://localhost:5150?serverInitializerFactory=#spf"
+         "netty4:tcp://0.0.0.0:5150?serverInitializerFactory=#spf"
       String return_string =
          "When You Go Home, Tell Them Of Us And Say,"
          + "For Your Tomorrow, We Gave Our Today.";
@@ -738,7 +738,7 @@ as shown below:
 [source,xml]
 ----
 <route>
-  <from uri="netty4:tcp://localhost:5021?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;usingExecutorService=false"/>
+  <from uri="netty4:tcp://0.0.0.0:5021?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;usingExecutorService=false"/>
   <to uri="log:result"/>
   ...
 </route>
@@ -749,7 +749,7 @@ And if we have another route we can refer to the shared worker pool:
 [source,xml]
 ----
 <route>
-  <from uri="netty4:tcp://localhost:5022?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;usingExecutorService=false"/>
+  <from uri="netty4:tcp://0.0.0.0:5022?textline=true&amp;sync=true&amp;workerPool=#sharedPool&amp;usingExecutorService=false"/>
   <to uri="log:result"/>
   ...
 </route>