Java Reference
In-Depth Information
Chapter 10. JAX-RS: Advanced Topics and Example
The Java API for RESTful Web Services (JAX-RS, defined in JSR 311) is designed to make
it easy to develop applications that use the REST architecture. This chapter describes ad-
vanced features of JAX-RS. If you are new to JAX-RS, see Chapter 13 , “Building RESTful
Web Services with JAX-RS,” in The Java EE 6 Tutorial: Basic Concepts before you pro-
ceed with this chapter.
JAX-RS is part of the Java EE 6 full profile. JAX-RS is integrated with Contexts and
Dependency Injection for the Java EE Platform (CDI), Enterprise JavaBeans (EJB) techno-
logy, and Java Servlet technology.
The following topics are addressed here:
• “ Annotations for Field and Bean Properties of Resource Classes on page 193
• “ Subresources and Runtime Resource Resolution ” on page 197
• “ Integrating JAX-RS with EJB Technology and CDI on page 198
• “ Conditional HTTP Requests on page 199
• “ Runtime Content Negotiation on page 200
• “ Using JAX-RS With JAXB on page 202
• “ The customer Example Application on page 209
Annotations for Field and Bean Properties of Resource Classes
JAX-RS annotations for resource classes let you extract specific parts or values from a Uni-
form Resource Identifier (URI) or request header.
JAX-RS provides the annotations listed in Table 10-1 .
Search WWH ::




Custom Search