You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2018/11/12 09:07:30 UTC

[incubator-dubbo-website] branch asf-site updated (2202024 -> 3cc83f8)

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

iluo pushed a change to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git.


    from 2202024  rebuild website
     new 384b303  correct URL, and callback key in the demo code
     new 3cc83f8  rebuild

The 2 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:
 docs/en-us/user/demos/callback-parameter.md   | 4 ++--
 docs/zh-cn/user/demos/callback-parameter.md   | 4 ++--
 en-us/docs/user/demos/callback-parameter.html | 4 ++--
 en-us/docs/user/demos/callback-parameter.json | 2 +-
 zh-cn/docs/user/demos/callback-parameter.html | 4 ++--
 zh-cn/docs/user/demos/callback-parameter.json | 2 +-
 6 files changed, 10 insertions(+), 10 deletions(-)


[incubator-dubbo-website] 01/02: correct URL, and callback key in the demo code

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

iluo pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git

commit 384b303e2def8f16aa6f0f8aa9c4ebd4db04e9e7
Author: beiwei.ly <be...@alibaba-inc.com>
AuthorDate: Mon Nov 12 17:02:49 2018 +0800

    correct URL, and callback key in the demo code
---
 docs/en-us/user/demos/callback-parameter.md | 4 ++--
 docs/zh-cn/user/demos/callback-parameter.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/en-us/user/demos/callback-parameter.md b/docs/en-us/user/demos/callback-parameter.md
index 23f3b70..afcd581 100644
--- a/docs/en-us/user/demos/callback-parameter.md
+++ b/docs/en-us/user/demos/callback-parameter.md
@@ -1,6 +1,6 @@
 # Callback parameter
 
-The parameter callback is the same as calling a local callback or listener, just declare which parameter is a callback type in Spring's configuration file, and Dubbo will generate a reverse proxy based on the long connection so that client logic can be called from the server.Can ref to [Sample code in the dubbo project](https://github.com/apache/incubator-dubbo/tree/master/dubbo-test/dubbo-test-examples/src/main/java/com/alibaba/dubbo/examples/callback).
+The parameter callback is the same as calling a local callback or listener, just declare which parameter is a callback type in Spring's configuration file, and Dubbo will generate a reverse proxy based on the long connection so that client logic can be called from the server.Can ref to [Sample code in the dubbo project](https://github.com/dubbo/dubbo-samples/tree/master/dubbo-samples-callback).
 
 ## Example of service interface
 
@@ -100,7 +100,7 @@ context.start();
 
 CallbackService callbackService = (CallbackService) context.getBean("callbackService");
 
-callbackService.addListener("http://10.20.160.198/wiki/display/dubbo/foo.bar", new CallbackListener(){
+callbackService.addListener("foo.bar", new CallbackListener(){
     public void changed(String msg) {
         System.out.println("callback1:" + msg);
     }
diff --git a/docs/zh-cn/user/demos/callback-parameter.md b/docs/zh-cn/user/demos/callback-parameter.md
index fbfd1e8..9790038 100644
--- a/docs/zh-cn/user/demos/callback-parameter.md
+++ b/docs/zh-cn/user/demos/callback-parameter.md
@@ -1,6 +1,6 @@
 # 参数回调
 
-参数回调方式与调用本地 callback 或 listener 相同,只需要在 Spring 的配置文件中声明哪个参数是 callback 类型即可。Dubbo 将基于长连接生成反向代理,这样就可以从服务器端调用客户端逻辑 [^1]。可以参考 [dubbo 项目中的示例代码](https://github.com/apache/incubator-dubbo/tree/master/dubbo-test/dubbo-test-examples/src/main/java/com/alibaba/dubbo/examples/callback)。
+参数回调方式与调用本地 callback 或 listener 相同,只需要在 Spring 的配置文件中声明哪个参数是 callback 类型即可。Dubbo 将基于长连接生成反向代理,这样就可以从服务器端调用客户端逻辑 [^1]。可以参考 [dubbo 项目中的示例代码](https://github.com/dubbo/dubbo-samples/tree/master/dubbo-samples-callback)。
 
 #### 服务接口示例
 
@@ -102,7 +102,7 @@ context.start();
  
 CallbackService callbackService = (CallbackService) context.getBean("callbackService");
  
-callbackService.addListener("http://10.20.160.198/wiki/display/dubbo/foo.bar", new CallbackListener(){
+callbackService.addListener("foo.bar", new CallbackListener(){
     public void changed(String msg) {
         System.out.println("callback1:" + msg);
     }


[incubator-dubbo-website] 02/02: rebuild

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

iluo pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-website.git

commit 3cc83f8cc142ec8832ecd9a91dc7e0e991acdd1d
Author: beiwei.ly <be...@alibaba-inc.com>
AuthorDate: Mon Nov 12 17:07:16 2018 +0800

    rebuild
---
 en-us/docs/user/demos/callback-parameter.html | 4 ++--
 en-us/docs/user/demos/callback-parameter.json | 2 +-
 zh-cn/docs/user/demos/callback-parameter.html | 4 ++--
 zh-cn/docs/user/demos/callback-parameter.json | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/en-us/docs/user/demos/callback-parameter.html b/en-us/docs/user/demos/callback-parameter.html
index 07ea32d..9f15304 100644
--- a/en-us/docs/user/demos/callback-parameter.html
+++ b/en-us/docs/user/demos/callback-parameter.html
@@ -13,7 +13,7 @@
 </head>
 <body>
 	<div id="root"><div class="documentation-page" data-reactroot=""><header class="header-container header-container-normal"><div class="header-body"><a href="/en-us/index.html"><img class="logo" src="/img/dubbo_colorful.png"/></a><div class="search search-normal"><span class="icon-search"></span></div><span class="language-switch language-switch-normal">中</span><div class="header-menu"><img class="header-menu-toggle" src="/img/menu_gray.png"/><ul><li class="menu-item menu-item-normal"><a  [...]
-<p>The parameter callback is the same as calling a local callback or listener, just declare which parameter is a callback type in Spring's configuration file, and Dubbo will generate a reverse proxy based on the long connection so that client logic can be called from the server.Can ref to <a href="https://github.com/apache/incubator-dubbo/tree/master/dubbo-test/dubbo-test-examples/src/main/java/com/alibaba/dubbo/examples/callback">Sample code in the dubbo project</a>.</p>
+<p>The parameter callback is the same as calling a local callback or listener, just declare which parameter is a callback type in Spring's configuration file, and Dubbo will generate a reverse proxy based on the long connection so that client logic can be called from the server.Can ref to <a href="https://github.com/dubbo/dubbo-samples/tree/master/dubbo-samples-callback">Sample code in the dubbo project</a>.</p>
 <h2>Example of service interface</h2>
 <h3>CallbackService.java</h3>
 <pre><code class="language-java"><span class="hljs-keyword">package</span> com.callback;
@@ -96,7 +96,7 @@ context.start();
 
 CallbackService callbackService = (CallbackService) context.getBean(<span class="hljs-string">"callbackService"</span>);
 
-callbackService.addListener(<span class="hljs-string">"http://10.20.160.198/wiki/display/dubbo/foo.bar"</span>, <span class="hljs-keyword">new</span> CallbackListener(){
+callbackService.addListener(<span class="hljs-string">"foo.bar"</span>, <span class="hljs-keyword">new</span> CallbackListener(){
     <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">changed</span><span class="hljs-params">(String msg)</span> </span>{
         System.out.println(<span class="hljs-string">"callback1:"</span> + msg);
     }
diff --git a/en-us/docs/user/demos/callback-parameter.json b/en-us/docs/user/demos/callback-parameter.json
index f239f9f..fea3b80 100644
--- a/en-us/docs/user/demos/callback-parameter.json
+++ b/en-us/docs/user/demos/callback-parameter.json
@@ -1,4 +1,4 @@
 {
   "filename": "callback-parameter.md",
-  "__html": "<h1>Callback parameter</h1>\n<p>The parameter callback is the same as calling a local callback or listener, just declare which parameter is a callback type in Spring's configuration file, and Dubbo will generate a reverse proxy based on the long connection so that client logic can be called from the server.Can ref to <a href=\"https://github.com/apache/incubator-dubbo/tree/master/dubbo-test/dubbo-test-examples/src/main/java/com/alibaba/dubbo/examples/callback\">Sample code i [...]
+  "__html": "<h1>Callback parameter</h1>\n<p>The parameter callback is the same as calling a local callback or listener, just declare which parameter is a callback type in Spring's configuration file, and Dubbo will generate a reverse proxy based on the long connection so that client logic can be called from the server.Can ref to <a href=\"https://github.com/dubbo/dubbo-samples/tree/master/dubbo-samples-callback\">Sample code in the dubbo project</a>.</p>\n<h2>Example of service interfac [...]
 }
\ No newline at end of file
diff --git a/zh-cn/docs/user/demos/callback-parameter.html b/zh-cn/docs/user/demos/callback-parameter.html
index c500ab6..891f173 100644
--- a/zh-cn/docs/user/demos/callback-parameter.html
+++ b/zh-cn/docs/user/demos/callback-parameter.html
@@ -13,7 +13,7 @@
 </head>
 <body>
 	<div id="root"><div class="documentation-page" data-reactroot=""><header class="header-container header-container-normal"><div class="header-body"><a href="/zh-cn/index.html"><img class="logo" src="/img/dubbo_colorful.png"/></a><div class="search search-normal"><span class="icon-search"></span></div><span class="language-switch language-switch-normal">En</span><div class="header-menu"><img class="header-menu-toggle" src="/img/menu_gray.png"/><ul><li class="menu-item menu-item-normal"><a [...]
-<p>参数回调方式与调用本地 callback 或 listener 相同,只需要在 Spring 的配置文件中声明哪个参数是 callback 类型即可。Dubbo 将基于长连接生成反向代理,这样就可以从服务器端调用客户端逻辑 <sup class="footnote-ref"><a href="#fn1" id="fnref1">[1]</a></sup>。可以参考 <a href="https://github.com/apache/incubator-dubbo/tree/master/dubbo-test/dubbo-test-examples/src/main/java/com/alibaba/dubbo/examples/callback">dubbo 项目中的示例代码</a>。</p>
+<p>参数回调方式与调用本地 callback 或 listener 相同,只需要在 Spring 的配置文件中声明哪个参数是 callback 类型即可。Dubbo 将基于长连接生成反向代理,这样就可以从服务器端调用客户端逻辑 <sup class="footnote-ref"><a href="#fn1" id="fnref1">[1]</a></sup>。可以参考 <a href="https://github.com/dubbo/dubbo-samples/tree/master/dubbo-samples-callback">dubbo 项目中的示例代码</a>。</p>
 <h4>服务接口示例</h4>
 <h6>CallbackService.java</h6>
 <pre><code class="language-java"><span class="hljs-keyword">package</span> com.callback;
@@ -96,7 +96,7 @@ context.start();
  
 CallbackService callbackService = (CallbackService) context.getBean(<span class="hljs-string">"callbackService"</span>);
  
-callbackService.addListener(<span class="hljs-string">"http://10.20.160.198/wiki/display/dubbo/foo.bar"</span>, <span class="hljs-keyword">new</span> CallbackListener(){
+callbackService.addListener(<span class="hljs-string">"foo.bar"</span>, <span class="hljs-keyword">new</span> CallbackListener(){
     <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">changed</span><span class="hljs-params">(String msg)</span> </span>{
         System.out.println(<span class="hljs-string">"callback1:"</span> + msg);
     }
diff --git a/zh-cn/docs/user/demos/callback-parameter.json b/zh-cn/docs/user/demos/callback-parameter.json
index 50bc584..df2f01b 100644
--- a/zh-cn/docs/user/demos/callback-parameter.json
+++ b/zh-cn/docs/user/demos/callback-parameter.json
@@ -1,4 +1,4 @@
 {
   "filename": "callback-parameter.md",
-  "__html": "<h1>参数回调</h1>\n<p>参数回调方式与调用本地 callback 或 listener 相同,只需要在 Spring 的配置文件中声明哪个参数是 callback 类型即可。Dubbo 将基于长连接生成反向代理,这样就可以从服务器端调用客户端逻辑 <sup class=\"footnote-ref\"><a href=\"#fn1\" id=\"fnref1\">[1]</a></sup>。可以参考 <a href=\"https://github.com/apache/incubator-dubbo/tree/master/dubbo-test/dubbo-test-examples/src/main/java/com/alibaba/dubbo/examples/callback\">dubbo 项目中的示例代码</a>。</p>\n<h4>服务接口示例</h4>\n<h6>CallbackService.java</h6>\n<pre><code class=\"language-java\"><span class=\"hl [...]
+  "__html": "<h1>参数回调</h1>\n<p>参数回调方式与调用本地 callback 或 listener 相同,只需要在 Spring 的配置文件中声明哪个参数是 callback 类型即可。Dubbo 将基于长连接生成反向代理,这样就可以从服务器端调用客户端逻辑 <sup class=\"footnote-ref\"><a href=\"#fn1\" id=\"fnref1\">[1]</a></sup>。可以参考 <a href=\"https://github.com/dubbo/dubbo-samples/tree/master/dubbo-samples-callback\">dubbo 项目中的示例代码</a>。</p>\n<h4>服务接口示例</h4>\n<h6>CallbackService.java</h6>\n<pre><code class=\"language-java\"><span class=\"hljs-keyword\">package</span> com.callback;\n \n<span class=\"h [...]
 }
\ No newline at end of file