I am writing a Proxy based Rest client using Apache CXF and I would like to pass some of the query parameters without having to pass them in my "search" method in the proxy interface. I tried using @DefaultValue but with that you still have to define a method parameter which I have to pass the same exact value everywhere. Is there a way to tell CXF to pass a query parameter with the same value all the time? That way I can remove some of the unnecessary parameters from proxy methods.
@GET
@Path("/{version}/{accountId}/search")
@Produces(MediaType.APPLICATION_JSON)
public String search(@PathParam("version") String version,
@PathParam("accountId") String accountId,
@DefaultValue("")@QueryParam("q") String queryString,
@DefaultValue("")@QueryParam("category") String category,
@DefaultValue("1")@QueryParam("page") int page,
@DefaultValue("50")@QueryParam("limit") int limit,
@DefaultValue("all")@QueryParam("response_detail") String responseDetail);