Book Image

Building RESTful Web Services with Java EE 8

By : Mario-Leander Reimer
Book Image

Building RESTful Web Services with Java EE 8

By: Mario-Leander Reimer

Overview of this book

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 now available, it is time to take a closer look at how to develop modern and lightweight web services with the latest API additions and improvements. Building RESTful Web Services with Java EE 8 is a comprehensive guide that will show you how to develop state-of-the-art RESTful web services with the latest Java EE 8 APIs. You will begin with an overview of Java EE 8 and the latest API additions and improvements. You will then 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. This book also guides you in leveraging the power of asynchronous APIs on the server and client side, and you will learn to use server-sent events (SSEs) for push communication. The final section covers advanced web service topics such as validation, JWT security, and diagnosability. By the end of this book, you will have implemented several working web services and have a thorough understanding of the Java EE 8 APIs required for lightweight web service development.
Table of Contents (8 chapters)

What this book covers

Chapter 1, Getting Started with Java EE 8, gets you started with Java EE 8—we'll implement our first simple web service using Java EE 8 and the relevant APIs.

Chapter 2, Building Synchronous Web Services and Clients, dives deep into synchronous services—we'll be implementing synchronous web services, and also web service clients, using the relevant APIs.

Chapter 3, Content Marshaling with JSON-B and JSON-P, covers content marshaling—we'll be using JSON-B and JSON-P for marshaling our content.

Chapter 4, Building Asynchronous Web Services, explores asynchronous services—we'll be implementing asynchronous web services, and also a web service client, using the new reactive client APIs.

Chapter 5, Using Server-Sent Events (SSE), covers SSEs—we'll be implementing PUSH notifications using those services and events.

Chapter 6, Advanced REST APIs, gives you an overview of some more advanced REST APIs—we'll be implementing Design by Contract, we'll talk about JSON Web Token security, and we'll also add the ability to diagnose our web services.