Is there a way to get any query parameter without explicitly declaring its name using the @QueryParam annotation?
I have a string which may have tokens like {animal}, which are then replaced by the query parameter posted, e.g. ?animal=fox, but I want the name of the token to be configurable as well. Ideally I would like to be able to do something like this:
for (QueryParam param : queryParams) {
text = text.replaceAll("{" + param.key + "}", param.value);
}