Can I use Map in query params? I have a number of resources for REST and I want to change list of query params in one place, I have a such source:
@GET
@Path("...")
@Produces({MediaType.APPLICATION_JSON})
public String getPath(
@PathParam("...") String path,
@QueryParam("headers") Map<String, String> headers // error!
How to use dynamic list of query params? Because headers will change in the future