public List < String > listAllCommands ( String applicationName ) { this . logger . finer ( "Listing commands in " + applicationName + "..." ) ; WebResource path = this . resource . path ( UrlConstants . APP ) . path ( applicationName ) . path ( "commands" ) ; List < String > result = this . wsClient . createBuilder ( path ) . accept ( MediaType . APPLICATION_JSON ) . get ( new GenericType < List < String > > ( ) { } ) ; if ( result != null ) { this . logger . finer ( result . size ( ) + " command(s) were found for " + applicationName + "." ) ; } else { this . logger . finer ( "No command was found for " + applicationName + "." ) ; result = new ArrayList <> ( 0 ) ; } return result ; }
Lists application commands .