cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r871702 - in /websites/production/cxf/content: cache/docs.pageCache docs/jax-rs-basics.html
Date Mon, 29 Jul 2013 12:48:21 GMT
Author: buildbot
Date: Mon Jul 29 12:48:20 2013
New Revision: 871702

Log:
Production update by buildbot for cxf

Modified:
    websites/production/cxf/content/cache/docs.pageCache
    websites/production/cxf/content/docs/jax-rs-basics.html

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

Modified: websites/production/cxf/content/docs/jax-rs-basics.html
==============================================================================
--- websites/production/cxf/content/docs/jax-rs-basics.html (original)
+++ websites/production/cxf/content/docs/jax-rs-basics.html Mon Jul 29 12:48:20 2013
@@ -722,7 +722,21 @@ public class Test1 {
 
 <p>However, in some cases, users have reported the algorithm being somewhat restrictive
in the way multiple resource classes are selected. For example, by default, after a given
resource class has been matched and if this class has no matching resource method, then the
algorithm stops executing, without attempting to check the remaining matching resource classes.</p>
 
-<p>Starting from CXF 2.2.5 it is possible to register a custom <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/ResourceComparator.java">ResourceComparator</a>
implementation using a jaxrs:server/resourceComparator element. </p>
+<p>Starting from CXF 2.2.5 it is possible to register a custom <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/ResourceComparator.java">ResourceComparator</a>
implementation using a jaxrs:server/jaxrs:resourceComparator element, example:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+&lt;!-- JAX-RS endpoint declaration fragment --&gt;
+&lt;jaxrs:server address="/"&gt;
+&lt;!-- Usual elements, like serviceBeans or providers, etc --&gt;
+
+&lt;!-- Custom ResourceComparator --&gt;
+&lt;jaxrs:resourceComparator&gt;
+   &lt;bean class="org.custom.CustomResourceComparator"/&gt;
+&lt;/jaxrs:resourceComparator&gt;
+&lt;/jaxrs:server&gt;
+
+]]></script>
+</div></div>
 
 <p>Custom implementations can check the names of the resource classes or methods being
compared  and given the current request URI they can make sure that the required class or
method is chosen by returning either -1 or 1, as needed. If 0 is returned then the runtime
will proceed with executing the default selection algorithm. At the moment the easiest way
to get to the details such as the current request URI is to create an instance of the CXF
JAXRS UriInfoImpl using a constructor accepting a Message.</p>
 



Mime
View raw message