[原创于:http://happydev.iteye.com]
REST风格(RESTful)和REST WEB服务框架最近很火热。http://zh.wikipedia.org/wiki/REST
在没有真正接触REST相关框架和应用前,我只能理解REST风格的链接,就是将每一个链接地址都用一个纯粹的url来表达。
最近项目中项目实现统一资源,并提供相关的资源接口,于是就想到了REST。
上网一查,基于Java已经有好几个REST框架了:http://www.iteye.com/topic/85928,这几个我都没看上,最终我被刚随JSR 311(JAX-RS: Java API for RESTful Web Services) 1.0规范正式发布的一个参考实现吸引住了:Jersey(https://jersey.dev.java.net/)。
好,进入正题,到官方网站上下载相关资源及文档,很遗憾,文档实在少得可怜,api doc也很粗糙。最后,找来找去只发现了三个文档比较有用:
不过好在Jersey还足够简单,通过以上的文档再配合读Jersey的源码,也很快在项目中实现了既定的目标。
我的结论是:
- 完全执照RESTful风格来组织web资源还是不太容易,虽然这个风格看上去很美;
- 用Jersey来实现Web Service真的是一个很好的途径,它足够轻量、足够简单、也足够高效。
分享到:
相关推荐
大神的Restful Web Service 详细介绍,Objectives By the end of this class, you should be able to: Give a working definition of RESTful Web Services actions, Enable a RESTful user in the SM operator ...
使用SpringBoot整合jersey 实现Restful web service.同时整合springmvc。
使用RESTful Web Service实现转账业务,包括事务处理和并发控制
《Java RESTful Web Service实战》PDF版本下载
jersey RESTful service 源代码 jersey RESTful service 源代码
Building a RESTful Web Service with Spring 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权...
RESTful Web Service Primer RESTful Web Service Primer
Jersey is the open source (under dual CDDL+GPL license), production quality, JAX-RS (JSR 311) Reference Implementation for building RESTful Web services. But, it is also more than the Reference ...
Java RESTful Web Service实战.pdf Java RESTful Web Service实战.pdf
RESTful Web Services 中文版 高清 PDF 电子书
Restful web service cook book 中文版
基于CXF的RESTful Web Service访问服务研究.pdf
Build a RESTful Web service using Jersey and Apache Tomcat document.
Restful Web Service电子书 英文版
restful web service with sse, totourial
rest风格的web service实例,采用java语言编写完成,可为不同客户端提供CURD服务,连接数据表customer后可运行。
restful web service cookbook
基于RESTful Web Service的数据资源交换系统设计与实现.pdf
本文展示了Http 协议的强大能力, 如何定义什么是Restful Web Service 架构以及以当今RPC 式Web 服务的对比,并解析了Restful web Service 架构的四个特征:可寻址性、无状态性、连通性和统一接口。