@RestQuery: extract binded parameter name at runtime #32455
luca-bassoricci
started this conversation in
Community
Replies: 1 comment
-
up |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a
ParamConverterProvider
based on@QueryParam#value
to extract the name of the parameter passed in query string and all works fine.After replacing
@QueryParam
with@RestQuery
without specify a@RestQuery#value()
the returned value is always empty.The only workaround I found is to create a custom annotation
@MyParam#value()
unrelated to@*Param
and@Rest*
: is this the right way to proceed?Another question: should
@Rest*#value
return the binded name at runtime with some bytecode manupulation?Thanks to all
Luca.
Beta Was this translation helpful? Give feedback.
All reactions