Invoking a REST with a boolean parameter receives the value false
even though passing true
on the client side.
Client:
$http.post("http://localhost/getServers/?light=true")
Server:
@Path("/getServers")
@POST
@Produces({MediaType.APPLICATION_JSON})
public Response getServers(
@Context HttpServletRequest request,
@DefaultValue("true") @QueryParam("light") boolean light)
{
// light is false even though true was passed
...
}