ColdFragrance commented on issue #77:
URL: 
https://github.com/apache/apisix-java-plugin-runner/issues/77#issuecomment-945330535


   My plugin's code as below:
   package org.apache.apisix.plugin.runner.filter;
   
   import java.util.logging.Logger;
   
   import org.apache.apisix.plugin.runner.HttpRequest;
   import org.apache.apisix.plugin.runner.HttpResponse;
   import org.springframework.stereotype.Component;
   
   import reactor.core.publisher.Mono;
   
   @Component
   public class FooFilter implements PluginFilter {
   
       private static final Logger log4j = Logger.getLogger("FooFilter");
   
       @Override
       public String name() {
           log4j.info("FooFilter");
           return "FooFilter";
       }
   
       @Override
       public Mono<Void> filter(HttpRequest request, HttpResponse response, 
PluginFilterChain chain) {
           log4j.info("FooFilter filter");
           return chain.filter(request, response);
       }
   }
   
   Additionally, my test via curl is normal when non-java-plugin.


-- 
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