cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r968094 - in /websites/production/cxf/content: cache/docs.pageCache docs/jaxrs-services-configuration.html
Date Wed, 07 Oct 2015 16:47:30 GMT
Author: buildbot
Date: Wed Oct  7 16:47:29 2015
New Revision: 968094

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/jaxrs-services-configuration.html

Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/cxf/content/docs/jaxrs-services-configuration.html
==============================================================================
--- websites/production/cxf/content/docs/jaxrs-services-configuration.html (original)
+++ websites/production/cxf/content/docs/jaxrs-services-configuration.html Wed Oct  7 16:47:29
2015
@@ -118,11 +118,11 @@ Apache CXF -- JAXRS Services Configurati
            <!-- Content -->
            <div class="wiki-content">
 <div id="ConfluenceContent"><p>&#160;</p><p>&#160;</p><p>&#160;</p><p>&#160;<span
class="inline-first-p" style="font-size:2em;font-weight:bold">JAX-RS : Services Configuration</span>&#160;</p><p>&#160;</p><p>&#160;</p><p>&#160;</p><p><style
type="text/css">/*<![CDATA[*/
-div.rbtoc1444167992021 {padding: 0px;}
-div.rbtoc1444167992021 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1444167992021 li {margin-left: 0px;padding-left: 0px;}
+div.rbtoc1444236412198 {padding: 0px;}
+div.rbtoc1444236412198 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1444236412198 li {margin-left: 0px;padding-left: 0px;}
 
-/*]]>*/</style></p><div class="toc-macro rbtoc1444167992021">
+/*]]>*/</style></p><div class="toc-macro rbtoc1444236412198">
 <ul class="toc-indentation"><li><a shape="rect" href="#JAXRSServicesConfiguration-ConfiguringJAX-RSservicesprogrammatically">Configuring
JAX-RS services programmatically</a></li><li><a shape="rect" href="#JAXRSServicesConfiguration-OSGI">OSGI</a>
 <ul class="toc-indentation"><li><a shape="rect" href="#JAXRSServicesConfiguration-Blueprint">Blueprint</a></li><li><a
shape="rect" href="#JAXRSServicesConfiguration-Spring">Spring</a></li></ul>
 </li><li><a shape="rect" href="#JAXRSServicesConfiguration-SpringBoot">Spring
Boot</a></li><li><a shape="rect" href="#JAXRSServicesConfiguration-ConfiguringJAX-RSendpointsprogrammaticallywithoutSpring">Configuring
JAX-RS endpoints programmatically without Spring</a></li><li><a shape="rect"
href="#JAXRSServicesConfiguration-BlueprintWeb">Blueprint Web</a>
@@ -264,7 +264,7 @@ factory.setBus(sf.getBus());
 manager.registerBindingFactory(JAXRSBindingFactory.JAXRS_BINDING_ID, factory);
 sf.create();
 </pre>
-</div></div><h1 id="JAXRSServicesConfiguration-BlueprintWeb">Blueprint
Web</h1><p>This section describes how CXF JAX-RS endpoints can be bootstrapped
with CXFBlueprintServlet and Blueprint contexts.</p><p>This approach is recommended
for developers building CXF JAX-RS endpoints to be deployed in OSGI and which will do RequestDispatcher-based
forrwards.</p><p>Additionally it allows to reuse the same Blueprint contexts between
OSGI and non-OSGI deployments.</p><p>Both options below work with CXF 3.1.3:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+</div></div><h1 id="JAXRSServicesConfiguration-BlueprintWeb">Blueprint
Web</h1><p>This section describes how CXF JAX-RS endpoints can be bootstrapped
with CXFBlueprintServlet and Blueprint contexts.</p><p>This approach is recommended
for developers building CXF JAX-RS endpoints to be deployed in OSGI and which will do RequestDispatcher-based
forwards.</p><p>Additionally it allows to reuse the same Blueprint contexts between
OSGI and non-OSGI deployments.</p><p>Both options below work with CXF 3.1.3:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <pre class="brush: xml; gutter: false; theme: Default" style="font-size:12px;">&lt;dependency&gt;
   &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
   &lt;artifactId&gt;cxf-rt-frontend-jaxrs&lt;/artifactId&gt;
@@ -285,7 +285,7 @@ sf.create();
   &lt;version&gt;1.1.1&lt;/version&gt;
 &lt;/dependency&gt;
 </pre>
-</div></div><p>&#160;</p><h2 id="JAXRSServicesConfiguration-Commonexample">Common
example</h2><p>&#160;</p><p>This <a shape="rect" class="external-link"
href="https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/resources/jaxrs_soap_blueprint/WEB-INF/web.xml"
rel="nofollow">web.xml</a> shows how to setup CXFBlueprintServlet which process <a
shape="rect" class="external-link" href="https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/resources/jaxrs_soap_blueprint/WEB-INF/beans.xml"
rel="nofollow">this Blueprint context.</a> It works exactly the same way in OSGI
and non-OSGI environments.</p><h1 id="JAXRSServicesConfiguration-ConfiguringJAX-RSservicesincontainerwithSpringconfigurationfile.">Configuring
JAX-RS services in container with Spring configuration file.</h1><h2 id="JAXRSServicesConfiguration-web.xml">web.xml</h2><p>In
web.xml one needs to register one or more CXFServlet(s) and link to an application context
configuration.</p><h3 id="JAXRSServicesCon
 figuration-UsingSpringContextLoaderListener">Using Spring ContextLoaderListener</h3><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
+</div></div><p>&#160;</p><h2 id="JAXRSServicesConfiguration-Commonexample">Common
example</h2><p>&#160;</p><p>This <a shape="rect" class="external-link"
href="https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/resources/jaxrs_soap_blueprint/WEB-INF/web.xml"
rel="nofollow">web.xml</a> shows how to setup CXFBlueprintServlet which processes
<a shape="rect" class="external-link" href="https://github.com/apache/cxf/blob/master/systests/jaxrs/src/test/resources/jaxrs_soap_blueprint/WEB-INF/beans.xml"
rel="nofollow">this Blueprint context.</a> It works exactly the same way in OSGI
and non-OSGI environments.</p><h1 id="JAXRSServicesConfiguration-ConfiguringJAX-RSservicesincontainerwithSpringconfigurationfile.">Configuring
JAX-RS services in container with Spring configuration file.</h1><h2 id="JAXRSServicesConfiguration-web.xml">web.xml</h2><p>In
web.xml one needs to register one or more CXFServlet(s) and link to an application context
configuration.</p><h3 id="JAXRSServicesC
 onfiguration-UsingSpringContextLoaderListener">Using Spring ContextLoaderListener</h3><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent
pdl">
 <pre class="brush: xml; gutter: false; theme: Default" style="font-size:12px;">&lt;?xml
version="1.0" encoding="ISO-8859-1"?&gt;
 
 &lt;!DOCTYPE web-app



Mime
View raw message