Resteasy interceptor implements the ContainerRequestFilter. But the undertow DeploymentInfo's addFilter needs the Filter Class needs to implemented.
How to solve this issue? we have to write as Filter only?
If that is the case I need to know about the java.lang.reflect.Method from the plain servlet context?
The ContainerRequestFilter is a JAX-RS component that has to be registered like you would register any other JAX-RS providers (i.e scanning for @Provider class annotation, overriding the getClasses method of the JAX-RS Application, add it in your web.xml context params, etc...)
The addFilter method in the Undertow DeploymentInfo class has a completely different meaning, as it allows you to add Servlet Filters to the Deployment.
To solve your issue, either use Resteasy to register your ContainerRequestFilter, or use a Servlet Filter to implement the same logic and register it via Undertow's DeploymentInfo.