Document Information

Preface

Part I Introduction

1.  Overview

2.  Using the Tutorial Examples

Part II The Web Tier

3.  Getting Started with Web Applications

4.  JavaServerTM Faces Technology

5.  Introduction to Facelets

6.  Unified Expression Language

7.  Using JavaServerTM Faces Technology in Web Pages

8.  Using Converters, Listeners and Validators

9.  Developing With JavaServerTM Faces Technology

10.  Java Servlet Technology

Part III Web Services

11.  Introduction to Web Services

12.  Building Web Services with JAX-WS

What are RESTful Web Services?

Where Does Jersey Fit In?

Creating a RESTful Root Resource Class

Developing RESTful Web Services with JAX-RS and Jersey

Overview of a Jersey-Annotated Application

The @Path Annotation and URI Path Templates

More on URI Path Template Variables

Responding to HTTP Resources

The Request Method Designator Annotations

Using Entity Providers to Map HTTP Response and Request Entity Bodies

Using @Consumes and @Produces to Customize Requests and Responses

The @Produces Annotation

The @Consumes Annotation

Extracting Request Parameters

Overview of JAX-RS and Jersey: Further Information

Example Applications for JAX-RS and Jersey

Creating a RESTful Web Service

Creating a RESTful Web Service Using NetBeans IDE

Creating a RESTful Web Service From Examples

Creating a RESTful Web Service From Maven Archetype

Example: Creating a Simple Hello World Application Using JAX-RS and Jersey

JAXRSHelloWorld Example: Discussion

Example: Adding on to the Simple Hello World RESTful Web Service

HelloWorld3 Example: Discussion

JAX-RS in the First Cup Example

Real World Examples

Further Information

Part IV Enterprise Beans

14.  Enterprise Beans

15.  Getting Started with Enterprise Beans

16.  Running the Enterprise Bean Examples

Part V Contexts and Dependency Injection for the JavaTM EE Platform

17.  Introduction to Contexts and Dependency Injection for the JavaTM EE Platform

18.  Running the Basic Contexts and Dependency Injection Examples

Part VI Persistence

19.  Introduction to the Java Persistence API

20.  Running the Persistence Examples

21.  The Java Persistence Query Language

22.  Creating Queries Using the Criteria API

Part VII Security

23.  Introduction to Security in the Java EE Platform

24.  Getting Started Securing Enterprise Applications

25.  Getting Started Securing Web Applications

Part VIII JavaTM EE Supporting Technologies

26.  Introduction to JavaTM EE Supporting Technologies

27.  Transactions

28.  Resource Connections

Index

 

Chapter 13

Building RESTful Web Services with JAX-RS and Jersey

PUThis chapter describes the REST architecture, RESTful web services, and Sun's reference implementation for JAX-RS (JavaTM API for RESTful Web Services, JSR-311), which is referred to as Jersey.