cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1233875 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/cors/package.html
Date Fri, 20 Jan 2012 11:31:20 GMT
Author: sergeyb
Date: Fri Jan 20 11:31:19 2012
New Revision: 1233875

Minor updates to the cors package.html


Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/cors/package.html
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/cors/package.html (original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/cors/package.html Fri Jan
20 11:31:19 2012
@@ -44,10 +44,8 @@ is defined by the combination of URI and
 it may cache it. JAX-RS, on the other hand, defines a resource as:
+<li>HTTP Method</li>
+<li>Content-Type and Accept HTTP headers</li>
 The logical place, in other words, to specify CORS policy in a JAX-RS application is at the
level of an annotated method. However, each method is
 applied to the narrow 'resource' defined by the list above, not just the URI+Method pair.
This will motivate the annotation model below. 
@@ -68,12 +66,6 @@ resource access models above makes it im
 If all the methods of a class can share a common policy, you can attach a single @{@link
 to a resource class, and it will apply to all the resource implied by all of the methods.
-If you need finer control, you can use @{@link CrossOriginResourceSharingPaths} at the class
level. This annotation contains a list of 
-@{@link CrossOriginResourceSharing} annotations. In the nested annotations, you add <tt>path
= "/localResourcePath"</tt> to associate the 
-annotation with a path. The filter will find the annotation based on path, and then allow
(or forbid) based on the method
-as compared to the <tt>allowedMethods</tt>.
 <h2>Bean Configuration</h2>
 The simplest configuration applies when you want to apply the same configuration to all of
your resources. In this case, you can

View raw message