You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2017/10/05 17:26:01 UTC
[cxf] branch 3.1.x-fixes updated: [CXF-7524] Correctly accessing
the runAsFilter property, patch from David J. M. Karlsen applied,
This closes #317
This is an automated email from the ASF dual-hosted git repository.
sergeyb pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/3.1.x-fixes by this push:
new 6e7a80a [CXF-7524] Correctly accessing the runAsFilter property, patch from David J. M. Karlsen applied, This closes #317
6e7a80a is described below
commit 6e7a80a4659987baf77ebacaad0c476409dde153
Author: Sergey Beryozkin <sb...@gmail.com>
AuthorDate: Thu Oct 5 18:20:45 2017 +0100
[CXF-7524] Correctly accessing the runAsFilter property, patch from David J. M. Karlsen applied, This closes #317
---
.../main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
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 e6ea436..ec0960a 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
@@ -95,8 +95,6 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
private static final String USE_PATH_CFG_PROPERTY = "use.path.based.config";
private static final String SUPPORT_UI_PROPERTY = "support.swagger.ui";
- private boolean runAsFilter;
-
private boolean scanAllResources;
private String ignoreRoutes;
@@ -156,7 +154,7 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
swaggerResources.add(apiListingResource);
List<Object> providers = new ArrayList<>();
- if (runAsFilter) {
+ if (isRunAsFilter()) {
providers.add(new SwaggerContainerRequestFilter(appInfo == null ? null : appInfo.getProvider()));
}
@@ -166,7 +164,7 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
swaggerUiVersion);
if (swaggerUiRoot != null) {
SwaggerUIService swaggerUiService = new SwaggerUIService(swaggerUiRoot, swaggerUiMediaTypes);
- if (!runAsFilter) {
+ if (!isRunAsFilter()) {
swaggerResources.add(swaggerUiService);
} else {
providers.add(new SwaggerUIServiceFilter(swaggerUiService));
@@ -180,7 +178,7 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
sfb.setResourceClassesFromBeans(swaggerResources);
List<ClassResourceInfo> cris = sfb.getClassResourceInfo();
- if (!runAsFilter) {
+ if (!isRunAsFilter()) {
for (ClassResourceInfo cri : cris) {
if (ApiListingResource.class.isAssignableFrom(cri.getResourceClass())) {
InjectionUtils.injectContextProxies(cri, apiListingResource);
--
To stop receiving notification emails like this one, please contact
['"commits@cxf.apache.org" <co...@cxf.apache.org>'].