Description
A simple rest client was created using the JAX-RS 2.0 API. The client works fine but then, a simple filter was added:
@Provider
public class ClientHeaderStripper implements ClientResponseFilter {
@Override
public void filter(ClientRequestContext arg0, ClientResponseContext arg1)
throws IOException
}
even thought the filter has the @Provider annotation it is not being registered automatically.
Followed the procedure pseudo documented in
https://issues.jboss.org/browse/RESTEASY-540
According to the spec any artifact that can be @Provider annotated should be auto-registered.
Not sure if I am doing something wrong or this does not work.