Arquitectura del Framework
As stated in the REST references provided in the previous section, the HTTP URL concept is central to the REST architectural style. Also, REST organizes its processing units as resources, and each resource is mapped to a particular URL reference. As URLs are global - each organization maintains its own set of URLs under its domain - this provides REST a universal addressing scheme, but this apparently trivial consideration simplifies a lot of the complexities found in a typical web services scenario.
NOTE: This section is extracted from the tutorial. For the complete explanations please refer there.
As REST architecture's organization is mainly based in URL hierarchies, it is important to know which parts of an URL map with which facilities of the java servlet API. The following URLs represent different resources in a REST hierarchy:
-
http://example.com/forum/topics
that represents the topics in a forum application.
-
http://example.com/forum/topics/234
that represents a single topic in a forum application.
-
http://example.com/forum/topics/234/comments
that represents comments on a single topic ( in the same forum application ).
-
http://example.com/forum/topics/234/comments/34
that represents a single comment of a given topic.
From a Java Servlet API implementation perspective, parts that form the previous URLs will be mapped to a resource as shown in the following image ( at least in a Cetia4 implementation ).
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|




















