public void shutdownApplication ( String applicationName ) throws ManagementWsException { this . logger . finer ( "Removing application " + applicationName + "..." ) ; WebResource path = this . resource . path ( UrlConstants . APPLICATIONS ) . path ( applicationName ) . path ( "shutdown" ) ; ClientResponse response = this . wsClient . createBuilder ( path ) . post ( ClientResponse . class ) ; String text = response . getEntity ( String . class ) ; this . logger . finer ( text ) ; if ( Family . SUCCESSFUL != response . getStatusInfo ( ) . getFamily ( ) ) throw new ManagementWsException ( response . getStatusInfo ( ) . getStatusCode ( ) , text ) ; }
Shutdowns an application .