Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1996

Provide builtin ParamConverter* classes for multi valued params

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Beta7
    • 3.6.1.Final, 4.0.0.Beta5
    • None
    • None

      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

      Suitable annotations for end-point can parametrize converter behaviour. rsigal@redhat.com's proposal:

      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) {

            rsigal@redhat.com Ronald Sigal
            mkopecky@redhat.com Marek Kopecky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: