*/
public final class ResourceQueryUtils {
public static WebServiceCallSpec generateCallSpec(CallPath callPath, Type resourceType,
Type resourceQueryParamsType, WebContextSpec webContextSpec) {
Builder builder = new WebServiceCallSpec.Builder(callPath)
.addAllRequestParams(webContextSpec.getRequestHeaderSpec())
.setListBody(resourceType)
.setUrlParams(resourceQueryParamsType)
.supportsHttpMethod(HttpMethod.GET);
if (callPath.hasVersion()) {
builder.setVersion(callPath.getVersion());
}
return builder
.build();
}