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

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

    Details

      Description

      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();
      	}
       
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ron_sigal Ron Sigal
                  Reporter:
                  nicolas.n Nicolas NESMON
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: