Learn how to design and develop distributed web services in Java, using RESTful architectural principles and the JAX-RS 2.0 specification in Java EE 7. By focusing on implementation rather than theory, this hands-on reference demonstrates how easy it is to get started with services based on the REST architecture.
With the book’s technical guide, you’ll learn how REST and JAX-RS work and when to use them. The RESTEasy workbook that follows provides step-by-step instructions for installing, configuring, and running several working JAX-RS examples, using the JBoss RESTEasy implementation of JAX-RS 2.0.
* Learn JAX-RS 2.0 features, including a client API, server-side asynchronous HTTP, and filters and interceptors
* Examine the design of a distributed RESTful interface for an e-commerce order entry system
* Use the JAX-RS Response object to return complex responses to your client (ResponseBuilder)
* Increase the performance of your services by leveraging HTTP caching protocols
* Deploy and integrate web services within Java EE7, servlet containers, EJB, Spring, and JPA
* Learn popular mechanisms to perform authentication on the Web, including client-side SSL and OAuth 2.0
Inhaltsverzeichnis
Foreword
Preface
REST and the JAX-RS Standard
Chapter 1: Introduction to REST
Chapter 2: Designing RESTful Services
Chapter 3: Your First JAX-RS Service
Chapter 4: HTTP Method and URI Matching
Chapter 5: JAX-RS Injection
Chapter 6: JAX-RS Content Handlers
Chapter 7: Server Responses and Exception Handling
Chapter 8: JAX-RS Client API
Chapter 9: HTTP Content Negotiation
Chapter 10: HATEOAS
Chapter 11: Scaling JAX-RS Applications
Chapter 12: Filters and Interceptors
Chapter 13: Asynchronous JAX-RS
Chapter 14: Deployment and Integration
Chapter 15: Securing JAX-RS
Chapter 16: Alternative Java Clients
JAX-RS Workbook
Chapter 17: Workbook Introduction
Chapter 18: Examples for Chapter 3
Chapter 19: Examples for Chapter 4
Chapter 20: Examples for Chapter 5
Chapter 21: Examples for Chapter 6
Chapter 22: Examples for Chapter 7
Chapter 23: Examples for Chapter 9
Chapter 24: Examples for Chapter 10
Chapter 25: Examples for Chapter 11
Chapter 26: Examples for Chapter 12
Chapter 27: Examples for Chapter 13
Chapter 28: Examples for Chapter 14
Chapter 29: Examples for Chapter 15
Index
Colophon