This section describes the functionality of a JAX-RS engine based on the configuration of RESTful Web Services (Web resources) shown in the following figure.
Figure 1-4 Configuration of RESTful Web Services
- JAX-RS engine
The JAX-RS engine acts as a communication base of the RESTful Web Services (Web resource).
- JAX-RS engine on a Web resource client
The JAX-RS engine receives Java objects from Web resource clients through client APIs for RESTful Web Services and generates HTTP requests. The engine then sends the generated HTTP requests to the Web resource to be invoked.
Next, the engine receives HTTP responses from Web resources and generates Java objects and then returns the generated Java objects to the Web resource client.
- JAX-RS engine on a Web resource
The engine, deployed on a Web resource, receives the HTTP requests from the client, finds the target resource class (discovery), and calls a method corresponding to the request (dispatch). The engine also generates the HTTP response from the target resource class, and returns the response to the caller client. When dispatching, the JAX-RS engine executes the required injections based on the annotations included in the resource class.
- Client APIs for RESTful Web Services
This is an API that can be used on a client that calls RESTful Web Services (Web resource).
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.