Book Image

RESTful Java Web Services - Third Edition

By : Balachandar Bogunuva Mohanram, Jobinesh Purushothaman
Book Image

RESTful Java Web Services - Third Edition

By: Balachandar Bogunuva Mohanram, Jobinesh Purushothaman

Overview of this book

Representational State Transfer (REST) is a simple yet powerful software architecture style to create lightweight and scalable web services. The RESTful web services use HTTP as the transport protocol and can use any message formats, including XML, JSON(widely used), CSV, and many more, which makes it easily inter-operable across different languages and platforms. This successful book is currently in its 3rd edition and has been used by thousands of developers. It serves as an excellent guide for developing RESTful web services in Java. This book attempts to familiarize the reader with the concepts of REST. It is a pragmatic guide for designing and developing web services using Java APIs for real-life use cases following best practices and for learning to secure REST APIs using OAuth and JWT. Finally, you will learn the role of RESTful web services for future technological advances, be it cloud, IoT or social media. By the end of this book, you will be able to efficiently build robust, scalable, and secure RESTful web services using Java APIs.
Table of Contents (11 chapters)

Java EE 8 enhancements for processing JSON

While Java EE8 is on its way and expected by the end of 2017, one of the most-awaited enhancement in Java EE 8 is related to JSON processing, covered by JSR 374 – Java API for JSON Processing 1.1.

With JSON becoming widely used in service-oriented patterns (such as reusable contract and lightweight endpoint), another key feature planned in Java EE8 is the JSR 367 Java API for JSON Binding (JSON-B). Similar to GSON, JSR 367 brings in the capability of marshalling/unmarshalling Java objects to JSON representation. JSON-B will be the standard binding layer for converting Java objects to/from JSON messages, similar to JAXB for XML binding.

Service-oriented patterns cover a variety of design patterns used to address the pain points that inhibit adopting Service-oriented principles. For example, reusable contract pattern avoids tight...