Jump To Close Expand all Collapse all Table of contents Developing RESTful Web Services 1. Introduction to RESTful Web Services 2. Creating Resources Expand section "2. Creating Resources" Collapse section "2. Creating Resources" 2.1. Introduction 2.2. Basic JAX-RS annotations 2.3. Root resource classes 2.4. Working with resource methods 2.5. Working with sub-resources 2.6. Resource selection method 3. Passing Information into Resource Classes and Methods Expand section "3. Passing Information into Resource Classes and Methods" Collapse section "3. Passing Information into Resource Classes and Methods" 3.1. Basics of injecting data 3.2. Using JAX-RS APIs Expand section "3.2. Using JAX-RS APIs" Collapse section "3.2. Using JAX-RS APIs" 3.2.1. Injecting data from a request URI 3.2.2. Injecting data from the HTTP message header 3.2.3. Injecting data from HTML forms 3.2.4. Specifying a default value to inject 3.3. Using Apache CXF extensions 4. Returning Information to the Consumer Expand section "4. Returning Information to the Consumer" Collapse section "4. Returning Information to the Consumer" 4.1. Returning plain Java constructs 4.2. Fine tuning an application's responses Expand section "4.2. Fine tuning an application's responses" Collapse section "4.2. Fine tuning an application's responses" 4.2.1. Basics of building responses 4.2.2. Creating responses for common use cases 4.2.3. Handling more advanced responses 4.3. Returning entities with generic type information 5. Handling Exceptions Expand section "5. Handling Exceptions" Collapse section "5. Handling Exceptions" 5.1. Using WebApplicaitonException exceptions to report errors 5.2. Mapping exceptions to responses 6. Publishing a Service 7. Entity Support 8. Customizing the Media Types Handled by a Resource 9. Getting and Using Context Information Expand section "9. Getting and Using Context Information" Collapse section "9. Getting and Using Context Information" 9.1. Introduction to contexts 9.2. Working with the full request URI Expand section "9.2. Working with the full request URI" Collapse section "9.2. Working with the full request URI" 9.2.1. Injecting the URI information 9.2.2. Working with the URI 9.2.3. Getting the value of URI template variables 9.2.4. Getting the query parameters 9.2.5. Getting the matrix parameters 9.3. Working with the HTTP Headers 9.4. Working with security information 9.5. Working with preconditions 9.6. Working with servlet contexts 9.7. Working with the Apache CXF context object 9.8. Adding custom contexts 10. Annotation Inheritance Index Trademark Disclaimer Third Party Acknowledgements Settings Close Language: English Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Language and Page Formatting Options Language: English Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Red Hat Training A Red Hat training course is available for Red Hat Fuse 9.8. Adding custom contexts 9.8. Adding custom contexts Previous Next