Book description
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.
It's easy to get started with services based on the REST architecture. RESTful Java with JAX-RS includes a technical guide that explains REST and JAX-RS, how they work, and when to use them. With the RESTEasy workbook that follows, you get step-by-step instructions for installing, configuring, and running several working JAX-RS examples using the JBoss RESTEasy implementation of JAX-RS.
- Work on the design of a distributed RESTful interface, and develop it in Java as a JAX-RS service
- Dispatch HTTP requests in JAX-RS, and learn how to extract information from them
- Deploy your web services within Java Enterprise Edition using the Application class, Default Component Model, EJB Integration, Spring Integration, and JPA
- Discover several options for securing your web services
- Learn how to implement RESTful design patterns using JAX-RS
- Write RESTful clients in Java using libraries and frameworks such as java.net.URL, Apache HTTP Client, and RESTEasy Proxy
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. Response Codes, Complex Responses, and Exception Handling
- 8. HTTP Content Negotiation
- 9. HATEOAS
- 10. Scaling JAX-RS Applications
- 11. Deployment and Integration
- 12. Securing JAX-RS
- 13. RESTful Java Clients
-
14. JAX-RS Implementations
- Jersey
-
Apache CXF
- Aggregating Request Parameters into Beans
- Converting Request Parameters into Custom Types
- Static Resolution of Subresources
- Client API
- Supporting Services Without JAX-RS Annotations
- Intercepting Requests and Responses
- Promoting XSLT and XPath As First-Class Citizens
- Support for Suspended Invocations
- Support for Multipart Formats
- Integration with Distributed OSGi RI
- Support for WADL
- Component Integration
- JBoss RESTEasy
- Wrapping Up
-
II. JAX-RS Workbook
- 15. Workbook Introduction
- 16. Examples for Chapter 3
- 17. Examples for Chapter 4
- 18. Examples for Chapter 5
- 19. Examples for Chapter 6
- 20. Examples for Chapter 7
- 21. Examples for Chapter 8
- 22. Examples for Chapter 9
- 23. Examples for Chapter 10
- 24. Examples for Chapter 11
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: RESTful Java with JAX-RS
- Author(s):
- Release date: November 2009
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596158040
You might also like
book
RESTful Java Web Services - Second Edition
Design scalable and robust RESTful web services with JAX-RS and Jersey extension APIs About This Book …
book
Building RESTful Web Services with Java EE 8
Learn the fundamentals of Java EE 8 APIs to build effective web services Key Features Design …
book
RESTful Java with JAX-RS 2.0, 2nd Edition
Learn how to design and develop distributed web services in Java, using RESTful architectural principles and …
book
RESTful Java Web Services - Third Edition
Master core REST concepts and create RESTful web services in Java About This Book Build efficient …