![]() ![]() ![]() What follows is a very quick overview of the annotations available to mark the methods and classes used to construct web resources. A typical example is to use the annotation with the annotation to identify the method that should handle a GET request to the specified URI in the annotation. Inclusion in Java EE: To allow Java EE features and components to be used within a Web resource class.Īnnotations in the JAX-RS API are used to provide meta-data around the web resource.Container independence: To ensure that artifacts using the API are deployable in a range of Web servers.Format independence: To be applicable to a wide variety of HTTP entity body content types and provide the necessary pluggability to allow additional types to be added.HTTP-centric: To use HTTP as the underlying network protocol and provide a clear mapping between HTTP and URI elements and the corresponding API classes and annotations.POJO-based: To provide a collection of classes/interfaces and associated annotations to be used with POJOs so as to expose them as Web resources.The technology that Java EE provides for this is the JAX-RS: Java API for RESTful Web Services. The principal methodology used to allow microservices to communicate with each other and the ‘outside world’ is REST and its use in developing RESTful APIs. The ubiquitous nature of the Internet and that recent increasing interest in the microservice architecture has put more focus on small, scalable, autonomous services and their interoperability. The JAX-RS API forms an important part of the Java EE platform's commitment to providing standards-driven technology. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |