WorizonJsonRpc:基于 HTTP 的 JSON-RPC 2.0 的 Java 库-源码

上传者: 42128141 | 上传时间: 2021-06-03 18:06:15 | 文件大小: 240KB | 文件类型: ZIP
Worizo​​nJsonRpc 易于使用的 Java 实现,可通过 HTTP 执行同步 JSON-RPC 2.0 请求。 该项目使用库将 java 对象与 json 对象相互转换。 JSON-RPC 2.0 规范 该库实现的大部分规范都可以在上找到。 有一个小组讨论规范和相关问题。 用法 该库旨在通过外观类Rpc 使用。 这个类公开了两种执行 rpc 请求的方法: 代理 API。 常规 API。 代理 api创建一个存根对象,它公开一个本地接口,当它确实是远程的时,所以调用被假装是本地的。 要使用代理 api,模拟远程服务的 Java 接口必须被注释为@Remote 。 代理 api 使用一组注释来调整 json 请求的表示以满足您的编组需求。 您可以在下面找到代理 api 的几个示例及其相关注释: @Remote public interface MyCalculator

文件下载

资源详情

[{"title":"( 65 个子文件 240KB ) WorizonJsonRpc:基于 HTTP 的 JSON-RPC 2.0 的 Java 库-源码","children":[{"title":"WorizonJsonRpc-master","children":[{"title":".gitignore <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"com","children":[{"title":"worizon","children":[{"title":"net","children":[{"title":"package-info.java <span style='color:#111;'> 165B </span>","children":null,"spread":false},{"title":"HttpRequestBuilder.java <span style='color:#111;'> 6.12KB </span>","children":null,"spread":false},{"title":"HttpRequest.java <span style='color:#111;'> 9.64KB </span>","children":null,"spread":false}],"spread":true},{"title":"jsonrpc","children":[{"title":"JsonRpcError.java <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"TypesUtil.java <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"JsonRpcResponse.java <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"RpcImpl.java <span style='color:#111;'> 7.23KB </span>","children":null,"spread":false},{"title":"IDGenerator.java <span style='color:#111;'> 820B </span>","children":null,"spread":false},{"title":"package-info.java <span style='color:#111;'> 148B </span>","children":null,"spread":false},{"title":"CallHandler.java <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false},{"title":"gson","children":[{"title":"NonExpose.java <span style='color:#111;'> 471B </span>","children":null,"spread":false},{"title":"package-info.java <span style='color:#111;'> 268B </span>","children":null,"spread":false},{"title":"BooleanTypeAdapter.java <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"NonExposeExclusionEstrategy.java <span style='color:#111;'> 518B </span>","children":null,"spread":false}],"spread":false},{"title":"Rpc.java <span style='color:#111;'> 18.08KB </span>","children":null,"spread":false},{"title":"JsonRpcException.java <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"TransformerException.java <span style='color:#111;'> 585B </span>","children":null,"spread":false},{"title":"Const.java <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"JsonRpcRequest.java <span style='color:#111;'> 3.05KB </span>","children":null,"spread":false},{"title":"JsonRpcBase.java <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"RemoteException.java <span style='color:#111;'> 981B </span>","children":null,"spread":false},{"title":"annotations","children":[{"title":"LocalException.java <span style='color:#111;'> 692B </span>","children":null,"spread":false},{"title":"RemoteProcName.java <span style='color:#111;'> 738B </span>","children":null,"spread":false},{"title":"LocalExceptions.java <span style='color:#111;'> 451B </span>","children":null,"spread":false},{"title":"RemoteParams.java <span style='color:#111;'> 617B </span>","children":null,"spread":false},{"title":"package-info.java <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"Remote.java <span style='color:#111;'> 517B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".travis.yml <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 7.71KB </span>","children":null,"spread":false},{"title":"target","children":[{"title":"WorizonJsonRpc-1.0.0-SNAPSHOT.jar <span style='color:#111;'> 35.16KB </span>","children":null,"spread":false},{"title":"WorizonJsonRpc-1.0.0-SNAPSHOT-javadoc.jar <span style='color:#111;'> 155.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"com","children":[{"title":"worizon","children":[{"title":"junit","children":[{"title":"jsonresponse","children":[{"title":"JsonRpcFloatArrayResponseTest.java <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"JsonRpcLongResponseTest.java <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"JsonRpcIntegerArrayResponseTest.java <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"JsonRpcDoubleResponseTest.java <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"JsonRpcFloatResponseTest.java <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"JsonRpcObjectResponseTest.java <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false},{"title":"JsonRpcStringArrayResponseTest.java <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"JsonRpcDoubleListResponseTest.java <span style='color:#111;'> 1017B </span>","children":null,"spread":false},{"title":"JsonRpcResponseSuite.java <span style='color:#111;'> 1013B </span>","children":null,"spread":false},{"title":"JsonRpcMixedTypesArrayResponseTest.java <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"JsonRpcIntegerResponseTest.java <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"JsonRpcResponseTest.java <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"JsonRpcVoidResponseTest.java <span style='color:#111;'> 913B </span>","children":null,"spread":false},{"title":"JsonRpcBooleanArrayResponseTest.java <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"JsonRpcMapResponseTest.java <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false},{"title":"JsonRpcVoidArrayResponseTest.java <span style='color:#111;'> 890B </span>","children":null,"spread":false},{"title":"JsonRpcLongArrayResponseTest.java <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"JsonRpcBooleanResponseTest.java <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false},{"title":"JsonRpcDoubleArrayResponseTest.java <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"JsonRpcObjectArrayResponseTest.java <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"JsonRpcStringResponseTest.java <span style='color:#111;'> 930B </span>","children":null,"spread":false},{"title":"JsonRpcErrorResponseTest.java <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false}],"spread":false},{"title":"jsonrequest","children":[{"title":"JsonRpcRequestTest.java <span style='color:#111;'> 4.84KB </span>","children":null,"spread":false}],"spread":true},{"title":"gson","children":[{"title":"BooleanTypeAdapterTest.java <span style='color:#111;'> 3.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"AllTests.java <span style='color:#111;'> 753B </span>","children":null,"spread":false},{"title":"rpc","children":[{"title":"HttpRequestBuilderTest.java <span style='color:#111;'> 6.42KB </span>","children":null,"spread":false},{"title":"RpcTest.java <span style='color:#111;'> 66.72KB </span>","children":null,"spread":false},{"title":"TypesUtilTest.java <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"HttpRequestTest.java <span style='color:#111;'> 6.55KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"test","children":[{"title":"TestServer.java <span style='color:#111;'> 8.88KB </span>","children":null,"spread":false},{"title":"BaseServer.java <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明