The current spec states:
The method parameter may be of type String, any Java primitive type or any boxed version thereof.
This is somewhat limiting so could be opened up to match the same specification as JAX-RS:
- Have a static method named
valueOf or fromString that accepts a single String argument (see, for example, Integer.valueOf(String)).
- Have a registered implementation of
ParamConverterProvider JAX-RS extension SPI that returns a ParamConverter instance capable of a "from string" conversion for the type.
Any failure should respond with a 404 Not Found.
This would promote consistency and clean up the code.
The current spec states:
This is somewhat limiting so could be opened up to match the same specification as JAX-RS:
This would promote consistency and clean up the code.