Can you inject an instance of ResourceInfo, something like the following:

protected ResourceInfo resourceInfo;

public void filter(ClientRequestContext ctx) throws IOException {
    Method method = resourceInfo.getResourceMethod();

On Fri, Dec 14, 2018 at 2:37 PM Michal Szynkiewicz <> wrote:

MicroProfile Rest Client 1.2 requires that the method that is handling the request is available under a specific key in the ClientRequestContext [1].

I've been struggling to find an elegant way of implementing it in SmallRye. Currently, I have it working with a filter and digging out the ClientInvocation from ClientRequestContextImpl [2] but would rather not use reflection for that.

Could you give me some tip how to implement it better, if possible?


resteasy-dev mailing list

Michael Musgrove

JBoss, by Red Hat
Registered Address: Red Hat Ltd, 6700 Cork Airport Business Park, Kinsale Road, Co. Cork.
Registered in the Companies Registration Office, Parnell House, 14 Parnell Square, Dublin 1, Ireland, No.304873
Directors:Michael Cunningham (USA), Vicky Wiseman (USA), Michael O'Neill, Keith Phelan, Matt Parson (USA)