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

您现在的位置是:虫虫源码 > 其他 > GWT的REST客户端

GWT的REST客户端

  • 资源大小:82.73 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: client springmvc GWT REST jsonp

资 源 简 介

gwt-rest-client is a simple rest request client for GWT. gwt-rest-client can send rest request which is compatible to Spring MVC. for example, I create a gwt-rest-client interface when I send rest request to http://twitter.com/statuses/user_timeline/hatebu.json?count=10. ``` /** * Base URL Mapping */ @URLMapping("http://twitter.com/") public interface TwitterRequest { /** * Restful WebService URL Mapping */ @URLMapping("statuses/user_timeline/{user}.json") JsonpRequestClient timeline( @URLParam("user") String path, @QueryParam("count") Long count); } /** *TwitterRequest Factory */ public interface TwitterRequestFactory extends RestRequestFactory { // create TitterRequest TwitterRequest create(); } ``` And, I send rest request to twitter by following code. ``` public class Sample implements EntryPoint { // create Factory TwitterRequestFactory factory = GWT.creat
VIP VIP
0.252555s