3

According to Jersey documentation

Filters can be used when you want to modify any request or response parameters like headers

So I believe modifying query params is possible but I don't know how and I haven't been able to find anything on Google or stackoverflow...

This the functionality I would like to achieve:

public class EreturnLookupFilter implements ContainerRequestFilter {

    private static final Logger logger = Logger.getLogger(UserResource.class.getName());

    @Override
    public void filter(ContainerRequestContext requestContext) throws IOException {

        // requestContext.setParameter("paramName", <new Value>);
    }
}

I am not keen to use prematching as I am linking this filter to a specific resource method so requestContext.setRequestUri( builder.build() ); as suggested here is not an option for me.

thank you very much

Community
  • 1
  • 1
masber
  • 2,875
  • 7
  • 29
  • 49

0 Answers0