[jboss-cvs] JBossAS SVN: r91853 - in projects/docs/enterprise/5.0/RESTEasy: en-US and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jul 30 20:26:17 EDT 2009
Author: laubai
Date: 2009-07-30 20:26:17 -0400 (Thu, 30 Jul 2009)
New Revision: 91853
Modified:
projects/docs/enterprise/5.0/RESTEasy/Makefile
projects/docs/enterprise/5.0/RESTEasy/en-US/Atom.xml
Log:
With Makefile
Modified: projects/docs/enterprise/5.0/RESTEasy/Makefile
===================================================================
--- projects/docs/enterprise/5.0/RESTEasy/Makefile 2009-07-31 00:22:58 UTC (rev 91852)
+++ projects/docs/enterprise/5.0/RESTEasy/Makefile 2009-07-31 00:26:17 UTC (rev 91853)
@@ -3,8 +3,8 @@
#Copyright Red Hat Inc. 2006
XML_LANG = en-US
-DOCNAME = Seam_Reference_Guide
-PRODUCT = Seam_Framework
+DOCNAME = RESTEasy_Reference_Guide
+PRODUCT = RESTEasy
BRAND = common
TRANSLATIONS = $(XML_LANG)
Modified: projects/docs/enterprise/5.0/RESTEasy/en-US/Atom.xml
===================================================================
--- projects/docs/enterprise/5.0/RESTEasy/en-US/Atom.xml 2009-07-31 00:22:58 UTC (rev 91852)
+++ projects/docs/enterprise/5.0/RESTEasy/en-US/Atom.xml 2009-07-31 00:26:17 UTC (rev 91853)
@@ -13,7 +13,7 @@
<para>
RESTEasy has defined a simple object model to represent Atom in Java, and uses JAXB to marshal and unmarshal it. The <literal>org.jboss.resteasy.plugins.providers.atom</literal> package contains the main classes: <classname>Feed</classname>, <classname>Entry</classname>, <classname>Content</classname>, and <classname>Link</classname>. Each class is annotated with JAXB annotations. The distribution also contains the JavaDocs for this project, which are very useful in learning the model. The following code is a simple example of sending an Atom feed with the RESTEasy API:
</para>
- <programlisting><![CDATA[
+ <programlisting><![CDATA[
import org.jboss.resteasy.plugins.providers.atom.Content;
import org.jboss.resteasy.plugins.providers.atom.Entry;
import org.jboss.resteasy.plugins.providers.atom.Feed;
@@ -48,18 +48,15 @@
return feed;
}
}
-]]>
+]]>
</programlisting>
- <para>Because Resteasy's atom provider is JAXB based, you are not limited to sending atom objects using XML.
- You can automatically re-use all the other JAXB providers that Resteasy has like JSON and fastinfoset.
- All you have to do is have "atom+" in front of the main subtype. i.e. @Produces("application/atom+json") or
- @Consumes("application/atom+fastinfoset")
+ <para>RESTEasy's Atom provider is JAXB-based, so you are not limited to sending Atom objects with XML. You can automatically re-use RESTEasy's other JAXB providers (JSON and FastinfoSet). All you need to do is add <literal>+atom</literal> in front of the main subtype (that is, <code>@Produces("application/atom+json")</code> or <code>@Consumes("application/atom+fastinfoset")</code>.
</para>
</section>
<section id="jaxb_atom">
<title>Using JAXB with the Atom Provider</title>
<para>
- The org.jboss.resteasy.plugins.providers.atom.Content class allows you to unmarshal and marshal JAXB
+ The <classname>org.jboss.resteasy.plugins.providers.atom.Content</classname> class allows you to unmarshal and marshal JAXB
annotated objects that are the body of the content. Here's an example of sending an Entry with
a Customer object attached as the body of the entry's content.
</para>
More information about the jboss-cvs-commits
mailing list