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:32 UTC

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

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