gharris1727 commented on code in PR #15149:
URL: https://github.com/apache/kafka/pull/15149#discussion_r1445493874


##########
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/rest/resources/ConnectResource.java:
##########
@@ -16,12 +16,15 @@
  */
 package org.apache.kafka.connect.runtime.rest.resources;
 
+import javax.ws.rs.container.ContainerRequestContext;
+import javax.ws.rs.container.ContainerRequestFilter;
+import java.io.IOException;
 import java.util.concurrent.TimeUnit;
 
 /**
  * This interface defines shared logic for all Connect REST resources.
  */
-public interface ConnectResource {
+public interface ConnectResource extends ContainerRequestFilter {

Review Comment:
   > I did some local experimenting and it seems like the @ConstrainedTo 
annotation isn't actually necessary--let me know if I'm missing something, 
though.
   
   I think you're right! I think that was from a slightly earlier iteration I 
had where i was trying to target [this first 
condition](https://github.com/eclipse-ee4j/jersey/blob/74bf3220a2dd5f2067e60c110d4981591e87604e/core-common/src/main/java/org/glassfish/jersey/internal/inject/Providers.java#L439)
 until I realized I couldn't get that one to work, and started targeting [this 
second 
condition](https://github.com/eclipse-ee4j/jersey/blob/74bf3220a2dd5f2067e60c110d4981591e87604e/core-common/src/main/java/org/glassfish/jersey/internal/inject/Providers.java#L443)
 instead.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to