Learn how to design and develop distributed web services in Java using RESTful architectural principals and the JAX-RS specification in Java EE 6. With this hands-on reference, you'll focus on implementation rather than theory, and discover why the RESTful method is far better than technologies like CORBA and SOAP. You'll get step-by-step instructions for installing, configuring, and running several working JAX-RS examples using the JBoss RESTEasy implementation of JAX-RS.
-
REST and the JAX-RS Standard
-
Chapter 1 Introduction to REST
- REST and the Rebirth of HTTP
- RESTful Architectural Principles
- Wrapping Up
-
Chapter 2 Designing RESTful Services
- The Object Model
- Model the URIs
- Defining the Data Format
- Assigning HTTP Methods
- Wrapping Up
-
Chapter 3 Your First JAX-RS Service
- Developing a JAX-RS RESTful Service
- Deploying Our Service
- Wrapping Up
-
Chapter 4 HTTP Method and URI Matching
- Binding HTTP Methods
- @Path
- Subresource Locators
- Wrapping Up
-
Chapter 5 JAX-RS Injection
- The Basics
- @PathParam
- @MatrixParam
- @QueryParam
- @FormParam
- @HeaderParam
- @CookieParam
- Common Functionality
- Wrapping Up
-
Chapter 6 JAX-RS Content Handlers
- Built-in Content Marshalling
- JAXB
- Custom Marshalling
- Wrapping Up
-
Chapter 7 Response Codes, Complex Responses, and Exception Handling
- Default Response Codes
- Complex Responses
- Exception Handling
- Wrapping Up
-
Chapter 8 HTTP Content Negotiation
- Conneg Explained
- Language Negotiation
- Encoding Negotiation
- JAX-RS and Conneg
- Leveraging Content Negotiation
- Wrapping Up
-
Chapter 9 HATEOAS
- HATEOAS and Web Services
- HATEOAS and JAX-RS
- Wrapping Up
-
Chapter 10 Scaling JAX-RS Applications
- Caching
- Concurrency
- Wrapping Up
-
Chapter 11 Deployment and Integration
- Deployment
- Configuration
- EJB Integration
- Spring Integration
- Wrapping Up
-
Chapter 12 Securing JAX-RS
- Authentication
- Authorization
- Authentication and Authorization in JAX-RS
- Wrapping Up
-
Chapter 13 RESTful Java Clients
- java.net.URL
- Apache HttpClient
- RESTEasy Client Framework
- RESTEasy Client Proxies
- Wrapping Up
-
Chapter 14 JAX-RS Implementations
- Jersey
- Apache CXF
- JBoss RESTEasy
- Wrapping Up
-
-
JAX-RS Workbook
-
Chapter 15 Workbook Introduction
- Installing RESTEasy and the Examples
- Example Requirements and Structure
-
Chapter 16 Examples for Chapter 3
- Build and Run the Example Program
- Examining the Source Code
-
Chapter 17 Examples for Chapter 4
- Example ex04_1: HTTP Method Extension
- Example ex04_2: @Path with Expressions
- Example ex04_3: Subresource Locators
-
Chapter 18 Examples for Chapter 5
- Example ex05_1: Injecting URI Information
- Example ex05_2: Forms and Cookies
-
Chapter 19 Examples for Chapter 6
- Example ex06_1: Using JAXB
- Example ex06_2: Creating a Content Handler
-
Chapter 20 Examples for Chapter 7
- Example ex07_1: ExceptionMapper
-
Chapter 21 Examples for Chapter 8
- Example ex08_1: Conneg with JAX-RS
- Example ex08_2: Conneg via URL Patterns
-
Chapter 22 Examples for Chapter 9
- Example ex09_1: Atom Links
- Example ex09_2: Link Headers
-
Chapter 23 Examples for Chapter 10
- Example ex10_1: Caching and Concurrent Updates
-
Chapter 24 Examples for Chapter 11
- Example ex11_1: EJB and JAX-RS
- Example ex11_2: Spring and JAX-RS
-
-
Colophon
- Title:
- RESTful Java with JAX-RS
- By:
- Bill Burke
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- November 2009
- Ebook Release:
- November 2009
- Pages:
- 320
- Print ISBN:
- 978-0-596-15804-0
- | ISBN 10:
- 0-596-15804-1
- Ebook ISBN:
- 978-1-4493-7751-9
- | ISBN 10:
- 1-4493-7751-3
The animal on the cover of




