Author: buildbot
Date: Thu Feb 22 10:57:37 2018
New Revision: 1025794
Log:
Production update by buildbot for cxf
Modified:
websites/production/cxf/content/cache/docs.pageCache
websites/production/cxf/content/docs/jax-rs-cors.html
Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/cxf/content/docs/jax-rs-cors.html
==============================================================================
--- websites/production/cxf/content/docs/jax-rs-cors.html (original)
+++ websites/production/cxf/content/docs/jax-rs-cors.html Thu Feb 22 10:57:37
2018
@@ -32,8 +32,8 @@
<link type="text/css" rel="stylesheet"
href="/resources/highlighter/styles/shThemeCXF.css">
<script src='/resources/highlighter/scripts/shCore.js'></script>
-<script src='/resources/highlighter/scripts/shBrushXml.js'></script>
<script src='/resources/highlighter/scripts/shBrushJava.js'></script>
+<script src='/resources/highlighter/scripts/shBrushXml.js'></script>
<script>
SyntaxHighlighter.defaults['toolbar'] = false;
SyntaxHighlighter.all();
@@ -117,52 +117,25 @@ Apache CXF -- JAX-RS CORS
<td height="100%">
<!-- Content -->
<div class="wiki-content">
-<div id="ConfluenceContent"><p></p><p></p><p></p><p></p><p><span
style="font-size:2em;font-weight:bold"> JAX-RS: CORS </span>
-
+<div id="ConfluenceContent"><p><span
style="font-size:2em;font-weight:bold">JAX-RS: CORS</span>
-</p><p></p><p></p><p></p><p></p><p></p>
+ </p><p><style type="text/css">/*<![CDATA[*/
+div.rbtoc1519297018802 {padding: 0px;}
+div.rbtoc1519297018802 ul {list-style: disc;margin-left: 0px;}
+div.rbtoc1519297018802 li {margin-left: 0px;padding-left: 0px;}
-<style type="text/css">/*<![CDATA[*/
-div.rbtoc1508777377053 {padding: 0px;}
-div.rbtoc1508777377053 ul {list-style: disc;margin-left: 0px;}
-div.rbtoc1508777377053 li {margin-left: 0px;padding-left: 0px;}
-
-/*]]>*/</style><div class="toc-macro rbtoc1508777377053">
+/*]]>*/</style></p><div class="toc-macro rbtoc1519297018802">
<ul class="toc-indentation"><li><a shape="rect"
href="#JAX-RSCORS-Introduction">Introduction</a></li><li><a shape="rect"
href="#JAX-RSCORS-Mavendependencies">Maven dependencies</a></li><li><a
shape="rect" href="#JAX-RSCORS-Examples">Examples</a></li></ul>
-</div>
-
-<h1 id="JAX-RSCORS-Introduction">Introduction</h1>
-
-<p>CXF 2.5.1 introduces the <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/cxf/trunk/rt/rs/security/cors/src/main/java/org/apache/cxf/rs/security/cors/">initial
support</a> for the <a shape="rect" class="external-link"
href="http://www.w3.org/TR/cors/" rel="nofollow">Cross-Origin Resource
Sharing</a> specification that "defines a mechanism to enable client-side
cross-origin requests".</p>
-
-<p>This <a shape="rect" class="external-link"
href="https://developer.mozilla.org/en/http_access_control"
rel="nofollow">Mozilla.org page</a> provides a very good explanation of
CORS.</p>
-
-<p>Please see the <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/cxf/trunk/rt/rs/security/cors/src/main/java/org/apache/cxf/rs/security/cors/package.html">package.html</a>
for a good introduction to CORS and the way it is supported in CXF JAX-RS.</p>
-
-<p>Note that the <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/cxf/trunk/rt/rs/security/cors/src/main/java/org/apache/cxf/rs/security/cors/CrossOriginResourceSharingFilter.java">CORS
filter</a> uses the JAX-RS selection algorithm to ensure that the JAX-RS
resource method capable of handling the request does exist.</p>
-
-<h1 id="JAX-RSCORS-Mavendependencies">Maven dependencies</h1>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default"
style="font-size:12px;">
-<dependency>
+</div><h1 id="JAX-RSCORS-Introduction">Introduction</h1><p>CXF 2.5.1
introduces the <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/cxf/trunk/rt/rs/security/cors/src/main/java/org/apache/cxf/rs/security/cors/">initial
support</a> for the <a shape="rect" class="external-link"
href="http://www.w3.org/TR/cors/" rel="nofollow">Cross-Origin Resource
Sharing</a> specification that "defines a mechanism to enable client-side
cross-origin requests".</p><p>This <a shape="rect" class="external-link"
href="https://developer.mozilla.org/en/http_access_control"
rel="nofollow">Mozilla.org page</a> provides a very good explanation of
CORS.</p><p>Please see the <a shape="rect" class="external-link"
href="http://htmlpreview.github.io/?https://github.com/apache/cxf/blob/master/rt/rs/security/cors/src/main/java/org/apache/cxf/rs/security/cors/package.html"
rel="nofollow">package.html</a> for a good introduction to CORS and the way it
is supported in CXF JAX-RS.</p><p>Note th
at the <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/cxf/trunk/rt/rs/security/cors/src/main/java/org/apache/cxf/rs/security/cors/CrossOriginResourceSharingFilter.java">CORS
filter</a> uses the JAX-RS selection algorithm to ensure that the JAX-RS
resource method capable of handling the request does exist.</p><h1
id="JAX-RSCORS-Mavendependencies">Maven dependencies</h1><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default"
style="font-size:12px;"><dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-security-cors</artifactId>
<version>2.6.1</version>
</dependency>
</pre>
-</div></div>
-
-<h1 id="JAX-RSCORS-Examples">Examples</h1>
-
-<p>Here is the test code showing how <a shape="rect" class="external-link"
href="http://svn.apache.org/repos/asf/cxf/trunk/rt/rs/security/cors/src/main/java/org/apache/cxf/rs/security/cors/CrossOriginResourceSharing.java">CrossOriginResourceSharing</a>
annotations can be applied at the resource and individual method levels.</p>
-
-<p>Note that an origin is restricted to "http://area51.mil:31415" by the
'allowOrigins' property, which may contain multiple URI values. A boolean
'allowAllOrigins' property can be used instead (to simplify the testing or when
it is deemed it is secure enough within a given environment to allow for all
the origins). </p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default"
style="font-size:12px;">
-@CrossOriginResourceSharing(
+</div></div><h1 id="JAX-RSCORS-Examples">Examples</h1><p>Here is the test code
showing how <a shape="rect" class="external-link"
href="https://github.com/apache/cxf/blob/master/rt/rs/security/cors/src/main/java/org/apache/cxf/rs/security/cors/CrossOriginResourceSharing.java"
rel="nofollow">CrossOriginResourceSharing</a> annotations can be applied at
the resource and individual method levels.</p><p>Note that an origin is
restricted to "http://area51.mil:31415" by the 'allowOrigins' property, which
may contain multiple URI values. A boolean 'allowAllOrigins' property can be
used instead (to simplify the testing or when it is deemed it is secure enough
within a given environment to allow for all the origins).</p><div class="code
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default"
style="font-size:12px;">@CrossOriginResourceSharing(
allowOrigins = {
"http://area51.mil:31415"
},
@@ -245,15 +218,9 @@ public class AnnotatedCorsServer {
}
</pre>
-</div></div>
-
-<p>The server configuration fragment:</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
-<pre class="brush: java; gutter: false; theme: Default"
style="font-size:12px;">
-
-<beans>
- <bean id="cors-filter"
class="org.apache.cxf.rs.security.cors.CrossOriginResourceSharingFilter"/>
+</div></div><p>The server configuration fragment:</p><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<pre class="brush: java; gutter: false; theme: Default"
style="font-size:12px;"><beans>
+ <bean id="cors-filter"
class="org.apache.cxf.rs.security.cors.CrossOriginResourceSharingFilter"/>
<jaxrs:server id="service" address="/rest">
<jaxrs:serviceBeans>
@@ -264,7 +231,7 @@ public class AnnotatedCorsServer {
</jaxrs:providers>
</jaxrs:server>
- <bean id="cors-server" scope="prototype"
+ <bean id="cors-server" scope="prototype"
class="org.apache.cxf.systest.jaxrs.cors.AnnotatedCorsServer"
/>
</beans>