On 21/01/2019 7:57 pm, Tim Ward wrote:
As a separate question - is there a reason that you are trying to use the 
Apache HttpClient? OSGi enRoute makes use of the JAX-RS Whiteboard which 
includes a simple way to access the JAX-RS specification client implementation. 
If it’s possible for you to use the existing JAX-RS Client instead then you 
could avoid adding the duplicate function.

R7 spec sample code

Client client = clientBuilder.build(); Promise<String> p = client.target(REST_SERVICE_URL) .path("/foo") .path("/{name}") .resolveTemplate("name", buzz) .request() .rx(PromiseRxInvoker.class) .get(String.class);

Using

Client client = ClientBuilder.newClient(); // as the first line

I cannot find dependecies which satisfy the rx(Promise...) line.

I have tried most of the glassfish jersey bundles and quite a few others.

Is there any working code examples available or can anyone suggest the required 
dependencies?

Paul

_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to