I'm trying to compare yes/no, true/false, Y/Nwith a Boolean query parameter in the URL-address of JAX-RS, but it only displays true/falsesuccessfully, all other values are shown to false all the time.
I understand that when matching url request parameters, jAX-RS tries to find a given data type constructor that takes a string argument and converts the request parameter into an object of the declared data type based on what the constructor does. The Boolean class takes a value true/TRUEas true and treats all other values as false.
Is there any way to match yes/no, Y/Nwith true/false?
source
share