首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > Simple and direct client-server communication.

Simple and direct client-server communication.

  • 资源大小:53.83 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: ication

资 源 简 介

Intoduction Dpc framework simplifies clean-server communication in a GWT application allowing direct calls to server-side services without creating any communication structure as special interfaces, action classes or handlers. The framework uses the GWT RPC communication technique and is inspired by gwt-dispatch project. ## 1. Create the service ## Define a service with an interface and its implementation. The interface must extend DPC interface. public interface GreetingService extends Dpc { String greetServer(String name) throws IllegalArgumentException;} And the implementation extends the interface. public class GreetingServiceImpl implements GreetingService { public String greetServer(String name) throws IllegalArgumentException { return "Hello " + name "!"; }} (see 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.176756s