change group to qianmi
authorangus.aqlu <angus.aqlu@gmail.com>
Sat, 24 Dec 2016 04:10:15 +0000 (12:10 +0800)
committerangus.aqlu <angus.aqlu@gmail.com>
Sat, 24 Dec 2016 04:10:15 +0000 (12:10 +0800)
NOTICE
README.md
pom.xml
src/main/java/com/qianmi/dubbo/rpc/protocol/jsonrpc/JsonRpcProtocol.java [moved from src/main/java/com/ofpay/dubbo/rpc/protocol/jsonrpc/JsonRpcProtocol.java with 99% similarity]
src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.rpc.Protocol
src/test/java/com/qianmi/dubbo/rpc/protocol/jsonrpc/JsonRpcProtocolTest.java [moved from src/test/java/com/ofpay/dubbo/rpc/protocol/jsonrpc/JsonRpcProtocolTest.java with 95% similarity]
src/test/java/com/qianmi/dubbo/rpc/protocol/jsonrpc/JsonRpcService.java [moved from src/test/java/com/ofpay/dubbo/rpc/protocol/jsonrpc/JsonRpcService.java with 78% similarity]
src/test/java/com/qianmi/dubbo/rpc/protocol/jsonrpc/JsonRpcServiceImpl.java [moved from src/test/java/com/ofpay/dubbo/rpc/protocol/jsonrpc/JsonRpcServiceImpl.java with 94% similarity]

diff --git a/NOTICE b/NOTICE
index 684b546..e569010 100644 (file)
--- a/NOTICE
+++ b/NOTICE
@@ -1,4 +1,4 @@
-Copyright 2015-2020 Ofpay Group.
+Copyright 2015-2020 Qianmi.com Group.
  
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
index 9b3f37f..2a95704 100644 (file)
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ dubbo-rpc-jsonrpc
 ## maven依赖:
 ```xml
 <dependency>
-    <groupId>com.ofpay</groupId>
+    <groupId>com.qianmi</groupId>
     <artifactId>dubbo-rpc-jsonrpc</artifactId>
     <version>1.0.1</version>
 </dependency>
@@ -127,7 +127,7 @@ public interface PhoneNoCheckProvider {
 Client
 ```shell
 curl -i -H 'content-type: application/json' -X POST -d '{"jsonrpc": "2.0", "method": "isPhoneNoLimit", "params": [ "MOBILE", "130000", "A001"],
-         "id": 1 }' 'http://127.0.0.1:18080/com.ofpay.api.PhoneNoCheckProvider'
+         "id": 1 }' 'http://127.0.0.1:18080/com.qianmi.api.PhoneNoCheckProvider'
 ```
 
 Python Client Example
@@ -142,7 +142,7 @@ def raw_client(app_params):
     headers = {"Content-type": "application/json-rpc",
                "Accept": "text/json"}
     h1 = httplib.HTTPConnection('172.19.32.135', port=18080)
-    h1.request("POST", '/com.ofpay.ofdc.api.phone.PhoneNoCheckProvider', json.dumps(app_params), headers)
+    h1.request("POST", '/com.qianmi.ofdc.api.phone.PhoneNoCheckProvider', json.dumps(app_params), headers)
     response = h1.getresponse()
     return response.read()
 
@@ -158,10 +158,10 @@ if __name__ == '__main__':
 ```
 
 ## Python客户端
-https://github.com/ofpay/dubbo-client-py
+https://github.com/QianmiOpen/dubbo-client-py
 
 ## Nodejs客户端
-https://github.com/ofpay/dubbo-node-client
+https://github.com/QianmiOpen/dubbo-node-client
 
 ## 客户端服务端Example  
 https://github.com/JoeCao/dubbo_jsonrpc_example  
diff --git a/pom.xml b/pom.xml
index 771063a..6c90640 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <version>7</version>
     </parent>
 
-    <groupId>com.ofpay</groupId>
+    <groupId>com.qianmi</groupId>
     <artifactId>dubbo-rpc-jsonrpc</artifactId>
     <version>1.0.2-SNAPSHOT</version>
     <packaging>jar</packaging>
     <name>${project.artifactId}</name>
     <description>The Json rpc module of dubbo project</description>
 
-    <url>https://github.com/ofpay/dubbo-rpc-jsonrpc</url>
+    <url>https://github.com/QianmiOpen/dubbo-rpc-jsonrpc</url>
 
     <licenses>
         <license>
@@ -41,9 +41,9 @@
     </licenses>
 
     <scm>
-        <connection>scm:git:git@github.com:ofpay/dubbo-rpc-jsonrpc.git</connection>
-        <developerConnection>scm:git:git@github.com:ofpay/dubbo-rpc-jsonrpc.git</developerConnection>
-        <url>git@github.com:ofpay/dubbo-rpc-jsonrpc.git</url>
+        <connection>scm:git:git@github.com:QianmiOpen/dubbo-rpc-jsonrpc.git</connection>
+        <developerConnection>scm:git:git@github.com:QianmiOpen/dubbo-rpc-jsonrpc.git</developerConnection>
+        <url>git@github.com:QianmiOpen/dubbo-rpc-jsonrpc.git</url>
     </scm>
 
     <developers>
index a9b1809..16a3487 100644 (file)
@@ -1 +1 @@
-jsonrpc=com.ofpay.dubbo.rpc.protocol.jsonrpc.JsonRpcProtocol
\ No newline at end of file
+jsonrpc=com.qianmi.dubbo.rpc.protocol.jsonrpc.JsonRpcProtocol
\ No newline at end of file
@@ -1,4 +1,4 @@
-package com.ofpay.dubbo.rpc.protocol.jsonrpc;
+package com.qianmi.dubbo.rpc.protocol.jsonrpc;
 
 import org.junit.Assert;
 import org.junit.Ignore;
@@ -10,7 +10,6 @@ import com.alibaba.dubbo.rpc.Exporter;
 import com.alibaba.dubbo.rpc.Invoker;
 import com.alibaba.dubbo.rpc.Protocol;
 import com.alibaba.dubbo.rpc.ProxyFactory;
-import com.ofpay.dubbo.rpc.protocol.jsonrpc.JsonRpcServiceImpl.MyException;
 
 /**
  * JsonRpcProtocolTest Created by wuwen on 15/4/1.
@@ -67,7 +66,7 @@ public class JsonRpcProtocolTest {
         try {
             client.customException();
             Assert.fail();
-        } catch (MyException expected) {
+        } catch (JsonRpcServiceImpl.MyException expected) {
         }
         invoker.destroy();
         exporter.unexport();