Author: irooskov(a)redhat.com
Date: 2011-11-01 23:41:35 -0400 (Tue, 01 Nov 2011)
New Revision: 36127
Added:
trunk/ws/docs/restful_reference/en-US/adding_JAX-RS_support_to_a_project.xml
trunk/ws/docs/restful_reference/en-US/images/enabling_JAX-RS_config_01.png
trunk/ws/docs/restful_reference/en-US/images/enabling_JAX-RS_config_02.png
trunk/ws/docs/restful_reference/en-US/images/enabling_JAX-RS_config_03.png
Modified:
trunk/ws/docs/restful_reference/en-US/JBoss_RESTful_Web_Services_User_Guide.xml
Log:
updated for WS 3.3.0.M2 content
Modified: trunk/ws/docs/restful_reference/en-US/JBoss_RESTful_Web_Services_User_Guide.xml
===================================================================
---
trunk/ws/docs/restful_reference/en-US/JBoss_RESTful_Web_Services_User_Guide.xml 2011-11-02
00:40:04 UTC (rev 36126)
+++
trunk/ws/docs/restful_reference/en-US/JBoss_RESTful_Web_Services_User_Guide.xml 2011-11-02
03:41:35 UTC (rev 36127)
@@ -5,6 +5,8 @@
<xi:include href="Book_Info.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
<xi:include href="Preface.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
<xi:include href="overview.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+<xi:include href="adding_JAX-RS_support_to_a_project.xml"
xmlns:xi="http://www.w3.org/2001/XInclude">
+</xi:include>
<xi:include href="sample_web_service_wizards.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="resteasy_simple_project_example.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
<xi:include href="web_service_test_view.xml"
xmlns:xi="http://www.w3.org/2001/XInclude" />
Added: trunk/ws/docs/restful_reference/en-US/adding_JAX-RS_support_to_a_project.xml
===================================================================
--- trunk/ws/docs/restful_reference/en-US/adding_JAX-RS_support_to_a_project.xml
(rev 0)
+++
trunk/ws/docs/restful_reference/en-US/adding_JAX-RS_support_to_a_project.xml 2011-11-02
03:41:35 UTC (rev 36127)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<chapter id="Adding_JAX-RS_support">
+ <title>Adding JAX-RS support to a project</title>
+ <section id="Adding_support_to_a_new_proejct">
+ <title>Adding support to a new project</title>
+ <para>
+ When creating a new <guilabel>Dynamic Web Project</guilabel>, JAX-RS
support can be enabled through the JAX-RS facet. To enable the JAX-RS facet during project
creation, click the <guibutton>Modify</guibutton> button in the
<guilabel>Configuration</guilabel> section.
+ </para>
+ <figure id="Enabling_JAX-RS_config_01">
+ <title>Enabling JAX-RS configuration</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/enabling_JAX-RS_config_01.png"
format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Enabling JAX-RS configuration</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ <para>
+ Navigate to <guilabel>Project Facets</guilabel> and click the checkbox next
to the <guilabel>JAX-RS (REST Web Services)</guilabel> item. Click the
<guibutton>OK</guibutton> button to save the settings and return to the
<guilabel>Dynamic Web Project</guilabel> creation wizard.
+ </para>
+ <figure id="Enabling_JAX-RS_config_02">
+ <title>Enabling JAX-RS configuration</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/enabling_JAX-RS_config_02.png"
format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Enabling JAX-RS configuration</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section>
+ <title>Adding support to an existing project</title>
+ <para>
+ JAX-RS support can be added to any Java project. To add this support, right-click on a
project in the <guilabel>Project Explorer</guilabel> to bring up the context
menu and navigate to
<menuchoice><guimenuitem>Configure</guimenuitem><guimenuitem>Add
JAX-RS 1.1 support</guimenuitem></menuchoice>.
+ </para>
+ <figure id="Enabling_JAX-RS_config_03">
+ <title>Adding JAX-RS support</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/enabling_JAX-RS_config_03.png"
format="PNG"/>
+ </imageobject>
+ <textobject>
+ <para>Adding JAX-RS support</para>
+ </textobject>
+ </mediaobject>
+ </figure>
+ <para>
+ It is also possible to add RESTful web service support to a project by bringing up the
context menu and navigating to <menuchoice>
+ <guimenuitem>Properties</guimenuitem>
+ <guimenuitem>Project Facets</guimenuitem>
+ </menuchoice>. Here you can click the checkbox next to the
<guilabel>JAX-RS (REST Web Services)</guilabel> item and click the
<guibutton>OK</guibutton> button to save the settings, as you would when
creating a new project.
+ </para>
+ </section>
+</chapter>
\ No newline at end of file
Added: trunk/ws/docs/restful_reference/en-US/images/enabling_JAX-RS_config_01.png
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/docs/restful_reference/en-US/images/enabling_JAX-RS_config_01.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/restful_reference/en-US/images/enabling_JAX-RS_config_02.png
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/docs/restful_reference/en-US/images/enabling_JAX-RS_config_02.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/ws/docs/restful_reference/en-US/images/enabling_JAX-RS_config_03.png
===================================================================
(Binary files differ)
Property changes on:
trunk/ws/docs/restful_reference/en-US/images/enabling_JAX-RS_config_03.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream