public static WarInfo getDeployedWarInfo ( String url , String warName , String token ) throws Exception { HttpClient client = httpClient ( ) ; HttpGet get = new HttpGet ( url + "/system/deployment/details/" + warName ) ; addAuthHeader ( token , get ) ; HttpResponse resp = client . execute ( get ) ; if ( resp . getStatusLine ( ) . getStatusCode ( ) == HttpStatus . SC_OK ) { WarInfo info = new Gson ( ) . fromJson ( EntityUtils . toString ( resp . getEntity ( ) ) , WarInfo . class ) ; return info ; } return null ; }
Retrieves information about a deployed cadmium war .