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

Provide support for multi valued query param using javax.ws.rs.ext.ParamConverter

XMLWordPrintable

      It would have been great to provide support for multi valued query param by letting user define they own javax.ws.rs.ext.ParamConverter to parse the query param value.

      For example it will allow to deals with URL like http://localhost:8085?dates= 20161214,20161215 define by following resource:

      @Path("/")
      public class ParamConverterResource {
      
      	// This method can only handle one 'dates' query parameter
      	@GET
      	public Response multiValuedQueryParam(@QueryParam("dates") List<Date> dates) {
      		return Response.ok(format(dates)).build();
      	}
      
      }
      

              rsigal@redhat.com Ronald Sigal
              nicones Nicolas NESMON (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: