0
我发出HTTP GET请求。我的代码 -如何在RESTful客户端中添加路径变量
// Set basic authentication
HttpAuthenticationFeature feature = basicAuth(basicUser, basicPassword);
SSLContext sslContext= getSSLContext();
WebTarget webTarget = newRestClient(feature, sslContext, url);
Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON_TYPE);
invocationBuilder = invocationBuilder.header(key, requestHeaders.get(key));
final Response response = invocationBuilder.get();
有什么办法,我可以使用调用生成器来在URL/NEW_PARAM添加路径变量,如NEW_PARAM?