Book Image

Building Web Services with Java EE 8 [Video]

By : Mario-Leander Reimer
Book Image

Building Web Services with Java EE 8 [Video]

By: Mario-Leander Reimer

Overview of this book

<p>The Java Enterprise Edition is one of the leading application programming platforms for enterprise Java development. With Java EE 8 finally released and the first application servers being available, it is time to have a closer look at how to develop modern and lightweight web services with the latest API additions and improvements.</p> <p>This video course is a comprehensive guide showing you how to develop state-of-the-art RESTful web services with the latest Java EE 8 APIs. We start by giving an overview of Java EE 8 and the latest API additions and improvements. Then you will implement, build, and package your first working web service as a prototype for the remainder of the course. Then you will delve into the details of implementing synchronous RESTful web services and clients with JAX-RS. Next up, you will learn about the specifics of data binding and content marshalling using the JSON-B 1.0 and JSON-P 1.1 APIs. Then you will learn how to leverage the power of asynchronous APIs on the server- and client-side, and you will learn to use Server-Sent-Events (SSEs) for push communications. The final section will cover some advanced web service topics such as validation, JWT security, and diagnosability.</p> <p>By the end of this course, you will have a thorough understanding of the Java EE 8 APIs required for lightweight web service development. Also, you will have implemented several working web services to provide you with the required practical experience.</p> <h1>Style and Approach</h1> <p>This course on using the latest Java EE 8 APIs is packed with step-by-step instructions and examples that are directly applicable in practice. The different sections of this course will focus on important topics when developing web services with Java EE 8.</p>
Table of Contents (6 chapters)
Chapter 2
Building Synchronous Web Services and Clients
Content Locked
Section 2
Using Sub-Resources
Proper REST APIs allow for the navigation to related resources using the URI. Usually, this is achieved by nesting the path. In JAX-RS, you can use sub-resource locators to return nested REST resource implementations. This video shows different approaches to using sub resources. - Define @Path annotated sub resource locator method - Either construct and return resource instance or resource class directly - Use @Inject ResourceContext to obtain fully managed resource instance