Using Atom content in JAX-RS application requests and responses

You can use the Atom Syndication Format (Atom) to format web feeds, which communicate news and updates of episodic information about websites. Using Atom content in JAX-RS applications, you can take advantage of web content syndication that provides the same decentralized, dynamic mechanisms for adding new metadata and content supported by RSS, but does so in a way that helps protect core interoperability between implementations.

About this task

Atom is an XML-based document format that describes lists of related information known as feeds. Feeds are composed of a number of items, known as entries, each with an extensible set of attached metadata. For example, each entry has a title. The primary use for Atom format is the syndication of web content such as weblogs and news headlines to websites, as well as publishing content directly to user agents.

The IBM® JAX-RS library provides a JAXB Atom model that uses the standard JAXB entity provider for consuming and producing Atom feeds and Atom entries in a JAX-RS application.

The JAXB Atom model is included in the org.apache.wink.common.model.atom and org.apache.wink.common.model.synd Java packages in the Apache Wink-based IBM JAX-RS library JAR. An application can use classes such as a JAXB annotated org.apache.wink.common.model.atom.AtomFeed to read and write ATOM feeds.

Procedure

  1. Configure the development environment.
  2. Define the resources in JAX-RS web applications.
  3. Configure the JAX-RS application.
  4. Implement JAXB-based ATOM content for requests and responsesImplement JAXB-based ATOM content for requests and responses
  5. Assemble JAX-RS web applications.
  6. Deploy JAX-RS web applications.

Results

You have developed and deployed a JAX-RS web application on the application server that uses Atom content for requests and responses.

Task topic    

Terms and conditions for information centers | Feedback

Last updated: April 17, 2014 10:32 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-express-iseries&topic=twbs_jaxrs_atomcontent
File name: twbs_jaxrs_atomcontent.html