RESTful Java with JAX-RS 2.0
- Length: 392 pages
- Edition: Second Edition
- Language: English
- Publisher: O'Reilly Media
- Publication Date: 2013-11-29
- ISBN-10: 144936134X
- ISBN-13: 9781449361341
- Sales Rank: #482286 (See Top 100 Books)
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
Table of Contents
Part I: 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
Part II: 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