cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Getting Swagger2 filter test passing
Date Wed, 02 Aug 2017 09:17:13 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 3b08b6301 -> 75b06d6d7


Getting Swagger2 filter test passing


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

Branch: refs/heads/master
Commit: 75b06d6d7fb1be4dfa6189d16b6d6530218bbbb6
Parents: 3b08b63
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Aug 2 10:16:55 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Aug 2 10:16:55 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java  | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/75b06d6d/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
----------------------------------------------------------------------
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
index bf0b658..c283c9f 100644
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
+++ b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
@@ -139,7 +139,8 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
 
         List<Object> providers = new ArrayList<>();
         if (runAsFilter) {
-            providers.add(new SwaggerContainerRequestFilter(appInfo == null ? null : appInfo.getProvider()));
+            providers.add(new SwaggerContainerRequestFilter(appInfo == null ? null : appInfo.getProvider(),
+                                                            customizer));
         }
 
         if (supportSwaggerUi) {
@@ -336,7 +337,8 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
     }
 
     @PreMatching
-    protected static class SwaggerContainerRequestFilter extends ApiListingResource implements
ContainerRequestFilter {
+    protected static class SwaggerContainerRequestFilter extends Swagger2ApiListingResource

+        implements ContainerRequestFilter {
 
         protected static final String APIDOCS_LISTING_PATH_JSON = "swagger.json";
         protected static final String APIDOCS_LISTING_PATH_YAML = "swagger.yaml";
@@ -345,7 +347,8 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
         protected MessageContext mc;
 
         private Application app;
-        public SwaggerContainerRequestFilter(Application app) {
+        public SwaggerContainerRequestFilter(Application app, Swagger2Customizer customizer)
{
+            super(customizer);
             this.app = app;
         }
 


Mime
View raw message