A concrete implementation of a REST web service follows four basic design principles:
- Uses HTTP methods explicitly (POST, GET, PUT, DELETE)
- Stateless
- Exposes directure structure
- Transfer XML, Javascript Object Notation, or both
The JAX-RS provides full support for building and deploying RESTful web services. It offers a number of utility classes and interfaces, and declarative annotations that allow you to:
- Identify components of the application
- route requests to particular methods/classes
- extract data from requests into arguments of methods
- provide metadata used in responses
0 comments:
Post a Comment