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
Publisher resources
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
book
Pro JPA 2 in Java EE 8: An In-Depth Guide to Java Persistence APIs
Learn to use the Java Persistence API (JPA) and other related APIs as found in the …
video
WireMock for Java Developers
WireMock is a simulator for HTTP-based APIs or MockServer. REST APIs are everywhere today as they're …
book
Java 8 in Action
Java 8 in Action is a clearly written guide to the new features of Java 8. …
book
Modern Java in Action
Manning's bestselling Java 8 book has been revised for Java 9 and 10! In Modern Java …