REST
Representational State Transfer (REST) is an architectural style for distributed hypermedia systems like the world wide web. The term originated in a 2000 doctoral dissertation about the web written by Roy Fielding, one of the principal authors of the HTTP protocol specification, and has quickly passed into widespread use in the networking community.
REST's proponents argue that the web has enjoyed the scalability and growth that it has as a result of a few key design principles:
- A stateless client/server protocol: each HTTP message contains all the information necessary to understand the request. As a result, neither the client nor the server needs to remember any communication-state between messages. In practice, however, many HTTP-based applications use cookies and other devices to maintain session state (some of those practices, like URL-rewriting, are not RESTful).
- A set of well-defined operations that apply to all pieces of information (called resources): HTTP itself defines a small set of operations, the most important of which are GET, POST, PUT, and DELETE. People often compare these with the CRUD operations required for data persistence, though POST does not fit cleanly into the comparison.
- A universal syntax for resource-identification: in a RESTful system, every resource is uniquely addressable through the resource's URI.
- The use of hypermedia both for application information and application state-transitions: representations in a REST system are typically HTML or XML files that contain both information and links to other resources; as a result, it is often possible to navigate from one REST resource to many others, simply by following links, without requiring the use of registries or other additional infrastructure.
Restlet
特点:完全抛弃了Servlet API,作为替代,自己实现了一套API。能够支持复杂的REST架构设计。 缺点: 1. 虽然也可以运行于Web容器中,但是难以利用Servlet和JSP等资源。因为需要另外学习一套API和概念,学习成本比...
Cetia4
特点:基于Servlet API开发,可以运行于所有的Web容器中。 优点: 1. 可以充分利用Servlet API和JSP等资源,需要额外学习的概念较少,学习成本较低。 2. 对于传统的Web应用,可以使用服务器端HTTP Session;对...
Apache Axis2
Axis2,最新版本1.2 特点:同时支持SOAP和REST风格的Web Service。 缺点: 1. 仅仅支持GET与POST方法。 2. 仅仅是以REST风格暴露出Web服务,数据格式仍然是包含SOAP封装的XML,不能使用更加有效的格式。 3...
sqlREST
sqlREST,最新版本0.3.1 特点: 1. 为任何可以通过JDBC访问的数据库提供Web服务访问接口,自动将REST风格的HTTP请求转换为相应的数据库SQL语句,并将数据库中的记录编码为XML格式传给客户端。是REST风格的HTTP请...
REST-art
REST-art,最新版本0.2 特点:一个旨在替换复杂的SOAP框架的REST框架,用来作为替代SOAP方便地发布Web服务的工具。不是基于Servlet API开发。 缺点: 1. 目前尚处于刚刚起步的阶段,功能非常少。 2. 不是基于...
JSON-RPC-Java(Java)
JSON-RPC-Java is a dynamic JSON-RPC Java bridge that allows you to transparently call server-side Java code from Javascript. There should be no changes necessary to your existing server-side Java code...
JSON
JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。易于人阅读和编写。同时也易于机器解析和生成。