]
James Perkins updated WFLY-11242:
---------------------------------
Fix Version/s: (was: 15.0.0.CR1)
Provide builtin ParamConverter* classes for multi valued params
---------------------------------------------------------------
Key: WFLY-11242
URL:
https://issues.jboss.org/browse/WFLY-11242
Project: WildFly
Issue Type: Feature Request
Reporter: Marek Kopecký
Assignee: Ron Sigal
Priority: Major
This is follow up for RESTEASY-1746 and RESTEASY-1566. In these feature jiras, users
needs to prepare custom ParamConverter* classes in deployment.
This feature should provide builtin ParamConverter* universal classes.
Some PoC is in [this
commit|https://github.com/marekkopecky/Resteasy/commit/08e0eb6de206085593...]
Suitable annotations for end-point can parametrize converter behaviour.
[~ron_sigal]'s proposal:
{noformat}Maybe annotations in
> public <T> ParamConverter<T> getConverter(Class<T> rawType,
Type genericType, Annotation[] annotations;
could be used to generalize. E.g.,
public Response conversion1(@QueryParam @Separator("&")
List<MultiValueParamBuiltinMyObject1> q);
Even more general could be something like
public Response conversion1(@QueryParam @MultiSyntax(<regular expression/>)
List<MultiValueParamBuiltinMyObject1> q) {{noformat}