-
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) { ... }
-