use of jakarta.ws.rs.client.WebTarget in project jaxrs-api by eclipse-ee4j.
the class JAXRSClientIT method createBuilderForMethod.
/**
* Create Invocation.Builder for given resource method and start time
*/
protected Invocation.Builder createBuilderForMethod(String methodName) {
Client client = ClientBuilder.newClient();
client.register(new JdkLoggingFilter(false));
WebTarget target = client.target(getUrl(methodName));
Invocation.Builder builder = target.request();
return builder;
}
Aggregations