google Analytics

Thursday, August 19, 2010

RESTfull webservices Overview

RESTfull webservice (Representational State Transfer)
Invented by : 2000 by Roy Fielding also known as e principal authors of the Hypertext Transfer Protocol (HTTP) specification
Concept: REST-style architectures consist of clients and servers. Clients initiate requests to servers; servers process requests and return appropriate responses. Requests and responses are built around the transfer of "representations" of "resources". A resource can be essentially any coherent and meaningful concept that may be addressed. A representation of a resource is typically a document that captures the current or intended state of a resource.

RESTful Web Service HTTP methods
Collection URI, such as the URIs and perhaps other details of the collection's members.Replace the entire collection with another collection.Create a new entry in the collection. The new entry's URL is assigned automatically and is usually returned by the operation.Delete the entire collection.
Element URI, such as a representation of the addressed member of the collection, expressed in an appropriate Internet media type.Update the addressed member of the collection, or if it doesn't exist, create it.Treat the addressed member as a collection in its own right and create a new entry in it.Delete the addressed member of the collection.

JSR Implementation: RESTEasy JAX-RS
  1. Deployed as War file,
  2. Get the Rest easy war from the open source
  3. JAr's Required if Using JBOSS Rest Easy
  1. httpcore-4.0.1.jar
  2. javassist-3.6.0.GA.jar
  3. jaxrs-api-2.0.1.GA.jar
  4. jcip-annotations-1.0.jar
  5. jcl-over-slf4j-1.5.8.jar
  6. jsr250-api-1.0.jar
  7. resteasy-jaxrs-2.0.1.GA.jar
  8. scannotation-1.0.2.jar
  9. slf4j-api-1.5.8.jar
  10. slf4j-simple-1.5.8.jar
  11. activation-1.1.jar
  12. commons-codec-1.2.jar
  13. commons-httpclient-3.1.jar
  14. httpclient-4.0.ja
RESTeasy is implemented as a Servlet and deployed within a WAR file.

Other's java Implementation for REST full Web services are
Java Jt Design Pattern Framework, Wink , Restlet, JBoss RESTEasy, Jersey, Apache CXF, NetKernel, Apache Sling, Restfulie


No comments:

Post a Comment