Created
February 4, 2016 00:55
-
-
Save rterp/e5ed331fc4a354b44acb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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