-
Call the service
-
Use the Client API.
String helloResponse = helloService.simpleGet("hello") .filter(r -> r.getStatus() == 200) .map(r -> r.readEntity(String.class)) .orElse("goodbye");
-
Or use
WebTarget
directly.try { WebTarget endpoint = helloService.getServiceRoot(); ... } catch(SnoopServiceUnavailableException e) { ... }
-
This repository has been archived by the owner on Oct 22, 2018. It is now read-only.