[jboss-jira] [JBoss JIRA] (WFLY-11242) Provide builtin ParamConverter* classes for multi valued params

James Perkins (Jira) issues at jboss.org
Fri Nov 30 18:42:00 EST 2018


     [ https://issues.jboss.org/browse/WFLY-11242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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/08e0eb6de20608559371a940d53c41102a6c50ac]
> 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}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the jboss-jira mailing list