]
Ron Sigal moved JBEAP-15723 to WFLY-11242:
------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-11242 (was: JBEAP-15723)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Fix Version/s: 15.0.0.Alpha1
(was: 7.3.0.GA)
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
Fix For: 15.0.0.Alpha1
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}