Can we use the @defaultValue annotation when using the RESTEasy client framework ?
The compiler doesn’t complain about this :
public interface XClient {
@GET
@Path("/rest/search")
@Produces(MediaType.APPLICATION_XML)
public String getInformation(
@QueryParam("partner") @DefaultValue("xxxxxx") String apiKey);
}
But how can I call this getInformation method without passing the apiKey parameter. In a way that the “xxxxxx” value would be taken instead.
Is that possible or am I misunderstanding the @DefaultValue annotation purpose ?
EDIT :
This cannot be done using the @DefaultValue annotation. Maybe there is another solution. There is not much documentation about the client side of the RESTEasy framework.
This cannot be done using the @DefaultValue annotation (Using the Client Framework).