Digital Marketing

Example of JAX-RS Client API in Java EE 7

try {
Client client = ClientBuilder.newClient();
WebTarget target ="");
String response = target.request().get(String.class);

} catch (IllegalArgumentException | NullPointerException | WebApplicationException ex) {
logger.severe("processing of HTTP response failed");


Popular posts from this blog

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership