Skip to content

Instantly share code, notes, and snippets.

@rterp
Created February 4, 2016 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rterp/e5ed331fc4a354b44acb to your computer and use it in GitHub Desktop.
Save rterp/e5ed331fc4a354b44acb to your computer and use it in GitHub Desktop.
public static String getWildflyVersion() {
WebTarget target = getClient().target("http://localhost:19990/management").queryParam("operation", "attribute").queryParam("name", "product-version");
Response response = target.request(MediaType.APPLICATION_JSON).get();
return response.readEntity(String.class);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment