RestClientProcessor should support parameterized providers/filters #15209
Open
Description
Description
Currently RestClientProcessor only support class-based registration of providers and I can't find a way to pass per method configuration. The idea would be to able to do something like :
@RegisterRestClient
@Path("/")
public interface ProtectedResourceService {
@GET
@RegisterProvider(CustomRequestFilter.class, "foo", "apple")
String getWithFoo();
@GET
@RegisterProvider(CustomRequestFilter.class, "bar", "banana")
String getWithBar();
}
or using annotations
@RegisterRestClient
@Path("/")
public interface ProtectedResourceService {
@GET
@CustomRequest(name="foo", other="apple")
String getWithFoo();
@GET
@CustomRequestFilter(name="bar", other="banana")
String getWithBar();
}