You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2020/11/19 16:02:05 UTC

[tomee] branch master updated: Ignore ClientRequestFilters

This is an automated email from the ASF dual-hosted git repository.

jgallimore pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git


The following commit(s) were added to refs/heads/master by this push:
     new af90c27  Ignore ClientRequestFilters
af90c27 is described below

commit af90c2783ace73cf204940f1aaf229b56e9e66a2
Author: Jonathan Gallimore <jo...@jrg.me.uk>
AuthorDate: Thu Nov 19 16:01:25 2020 +0000

    Ignore ClientRequestFilters
---
 .../java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java b/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java
index 90569de..514ea51 100644
--- a/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java
+++ b/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java
@@ -109,6 +109,7 @@ import javax.validation.ValidatorFactory;
 import javax.validation.metadata.MethodDescriptor;
 import javax.ws.rs.ConstrainedTo;
 import javax.ws.rs.RuntimeType;
+import javax.ws.rs.client.ClientRequestFilter;
 import javax.ws.rs.core.Application;
 import javax.ws.rs.core.Configuration;
 import javax.ws.rs.core.MediaType;
@@ -557,6 +558,11 @@ public class CxfRsHttpListener implements RsHttpListener {
             }
             throw new IllegalArgumentException(clazz + " is not a SERVER provider");
         }
+
+        if (ClientRequestFilter.class.isAssignableFrom(clazz)) {
+            return true;
+        }
+
         return false;
     }