Skip to content

RestClientProcessor should support parameterized providers/filters #15209

Open
@cortex93

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();
}

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions