cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject cxf git commit: [CXF-6557] add a comment text about cxf's CORS filter in the swagger2 demos
Date Thu, 27 Aug 2015 08:25:43 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes c7d8cac1b -> 1fa100325


[CXF-6557] add a comment text about cxf's CORS filter in the swagger2 demos


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/1fa10032
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/1fa10032
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/1fa10032

Branch: refs/heads/3.0.x-fixes
Commit: 1fa10032597f71057b31efd7967152dc23c503aa
Parents: c7d8cac
Author: Akitoshi Yoshida <ay@apache.org>
Authored: Thu Aug 27 10:20:38 2015 +0200
Committer: Akitoshi Yoshida <ay@apache.org>
Committed: Thu Aug 27 10:25:30 2015 +0200

----------------------------------------------------------------------
 .../main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java   | 6 ++++++
 .../main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java   | 6 ++++++
 .../main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java   | 6 ++++++
 3 files changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/1fa10032/distribution/src/main/release/samples/jax_rs/description_swagger2/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/description_swagger2/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
b/distribution/src/main/release/samples/jax_rs/description_swagger2/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
index 8a3182c..43dd95d 100644
--- a/distribution/src/main/release/samples/jax_rs/description_swagger2/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
+++ b/distribution/src/main/release/samples/jax_rs/description_swagger2/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
@@ -26,6 +26,12 @@ import javax.ws.rs.container.ContainerResponseContext;
 import javax.ws.rs.container.ContainerResponseFilter;
 import javax.ws.rs.core.MultivaluedMap;
 
+/**
+ * This is a simple optional CORS filter used for this demo to make the resources accessible
+ * from other origins. You may omit using this filter or use CXF's advanced CORS filter 
+ * org.apache.cxf.rs.security.cors.CrossOriginResourceSharingFilter  
+ * included in cxf-rt-rs-security-cors if you need a more comprehensive accessibility rules.
+ */
 public class ApiOriginFilter implements ContainerResponseFilter {
 
     @Override

http://git-wip-us.apache.org/repos/asf/cxf/blob/1fa10032/distribution/src/main/release/samples/jax_rs/description_swagger2_osgi/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/description_swagger2_osgi/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
b/distribution/src/main/release/samples/jax_rs/description_swagger2_osgi/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
index 8a3182c..43dd95d 100644
--- a/distribution/src/main/release/samples/jax_rs/description_swagger2_osgi/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
+++ b/distribution/src/main/release/samples/jax_rs/description_swagger2_osgi/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
@@ -26,6 +26,12 @@ import javax.ws.rs.container.ContainerResponseContext;
 import javax.ws.rs.container.ContainerResponseFilter;
 import javax.ws.rs.core.MultivaluedMap;
 
+/**
+ * This is a simple optional CORS filter used for this demo to make the resources accessible
+ * from other origins. You may omit using this filter or use CXF's advanced CORS filter 
+ * org.apache.cxf.rs.security.cors.CrossOriginResourceSharingFilter  
+ * included in cxf-rt-rs-security-cors if you need a more comprehensive accessibility rules.
+ */
 public class ApiOriginFilter implements ContainerResponseFilter {
 
     @Override

http://git-wip-us.apache.org/repos/asf/cxf/blob/1fa10032/distribution/src/main/release/samples/jax_rs/description_swagger2_web/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/description_swagger2_web/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
b/distribution/src/main/release/samples/jax_rs/description_swagger2_web/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
index 8a3182c..43dd95d 100644
--- a/distribution/src/main/release/samples/jax_rs/description_swagger2_web/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
+++ b/distribution/src/main/release/samples/jax_rs/description_swagger2_web/src/main/java/demo/jaxrs/swagger/server/ApiOriginFilter.java
@@ -26,6 +26,12 @@ import javax.ws.rs.container.ContainerResponseContext;
 import javax.ws.rs.container.ContainerResponseFilter;
 import javax.ws.rs.core.MultivaluedMap;
 
+/**
+ * This is a simple optional CORS filter used for this demo to make the resources accessible
+ * from other origins. You may omit using this filter or use CXF's advanced CORS filter 
+ * org.apache.cxf.rs.security.cors.CrossOriginResourceSharingFilter  
+ * included in cxf-rt-rs-security-cors if you need a more comprehensive accessibility rules.
+ */
 public class ApiOriginFilter implements ContainerResponseFilter {
 
     @Override


Mime
View raw message