1

I have in my resource class such method:

@GET
@Path("/")
public Result list(@BeanParam Pageable pageable) {
    ...
}

And the Pageable is:

public class Pageable {
@QueryParam("offset")
@DefaultValue("0")
private int offset;

...

When I pass big number in GET parameters, it fails with 404. How can I pre-validate request value to return error that parameter is too big?

Thanks!

Vadim
  • 85
  • 1
  • 2
  • 7

0 Answers0