Book description
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
- Foreword
- Preface
-
I. REST and the JAX-RS Standard
- 1. Introduction to REST
-
2. Designing RESTful Services
- The Object Model
- Model the URIs
- Defining the Data Format
- Assigning HTTP Methods
- Wrapping Up
- 3. Your First JAX-RS Service
- 4. HTTP Method and URI Matching
- 5. JAX-RS Injection
- 6. JAX-RS Content Handlers
- 7. Server Responses and Exception Handling
- 8. JAX-RS Client API
- 9. HTTP Content Negotiation
- 10. HATEOAS
- 11. Scaling JAX-RS Applications
- 12. Filters and Interceptors
- 13. Asynchronous JAX-RS
- 14. Deployment and Integration
- 15. Securing JAX-RS
- 16. Alternative Java Clients
-
II. JAX-RS Workbook
- 17. Workbook Introduction
- 18. Examples for Chapter 3
- 19. Examples for Chapter 4
- 20. Examples for Chapter 5
- 21. Examples for Chapter 6
- 22. Examples for Chapter 7
- 23. Examples for Chapter 9
- 24. Examples for Chapter 10
- 25. Examples for Chapter 11
- 26. Examples for Chapter 12
- 27. Examples for Chapter 13
- 28. Examples for Chapter 14
- 29. Examples for Chapter 15
- Index
- Colophon
- Copyright
Product information
- Title: RESTful Java with JAX-RS 2.0, 2nd Edition
- Author(s):
- Release date: November 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449361457
You might also like
audiobook
The Design of Everyday Things
First, businesses discovered quality as a key competitive edge; next came science. Now, Donald A. Norman, …
video
Practical Python: Learn Python Basics Step by Step- Python 3
A hands-on comprehensive course to master the core basics of Python 3 to dive into the …
book
Practical Monitoring
Do you have a nagging feeling that your monitoring needs improvement, but you just aren’t sure …
book
Clean Architecture: A Craftsman's Guide to Software Structure and Design
Building upon the success of best-sellers The Clean Coder and Clean Code, legendary software craftsman Robert …