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

Enable String marshalling forString based @*Param into char primitive or char wrapper

XMLWordPrintable

      String marshalling for String based @*Param (@QueryParam, @MatrixParam...) should be supported by default as it is already done for other primitive types.

      Example:

       @GET
          @Produces("application/char")
          public String doGet(@QueryParam("char") char v) {
              Assert.assertEquals(QueryParamAsPrimitiveTest.ERROR_MESSAGE, 'a', v);
              return "content";
          }
      

              rhn-support-asoldano Alessio Soldano
              nicones Nicolas NESMON (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: