In RESTeasy this...
@GET
@Path("request")
public String requestJson(@QueryParam("arg1") @DefaultValue("") String arg1,
@QueryParam("arg2") @DefaultValue("0") Integer arg2);
...allows you to define any subset of parameters defined in the method signature. Surely it is then possible to use this same pattern on any method signature something like this:
@Method
public String requestJson(@OptionalParameter("arg1") @DefaultValue("") String arg1,
@OptionalParameter("arg2") @DefaultValue("0") Integer arg2);
Is it possible to do this? If so how?