You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

JAX-RS Concepts

JAX-RS (JSR 311) is the latest JCP specification that provides a Java based API for REST Web services over the HTTP protocol. The JAX-RS specification is an annotation based server side API.

Apache Wink implements JAX-RS 1.0.

For those new to JAX-RS or developing REST applications, follow this in-progress user guide. If you have comments or questions, send an e-mail to the appropriate Apache Wink mailing lists.

While this user guide covers common scenarios, it is not intended to detail the JAX-RS specification itself. Please read the (brief yet understandable) specification if it is available to you.

Getting Started - A Simple JAX-RS Application

  • Creating a Resource
  • Creating a javax.ws.rs.core.Application sub-class
  • Packaging Apache Wink with a Web Application
  • Installation and Running the Application

Application Configuration

  • javax.ws.rs.core.Application subclass
  • Container environment information

Resources, HTTP Methods, and Paths

Request and Response Entities (Message Bodies) and Media Types

Parameters

HTTP Headers

Content Negotiation

Using Request Context Information

Caching

  • Expires
  • Cache-Control
  • No labels