public List < TargetWrapperDescriptor > listAllTargets ( ) { this . logger . finer ( "Listing all the available targets." ) ; WebResource path = this . resource . path ( UrlConstants . TARGETS ) ; List < TargetWrapperDescriptor > result = this . wsClient . createBuilder ( path ) . accept ( MediaType . APPLICATION_JSON ) . type ( MediaType . APPLICATION_JSON ) . get ( new GenericType < List < TargetWrapperDescriptor > > ( ) { } ) ; if ( result != null ) this . logger . finer ( result . size ( ) + " target descriptors were found." ) ; else this . logger . finer ( "No target descriptor was found." ) ; return result != null ? result : new ArrayList < TargetWrapperDescriptor > ( 0 ) ; }
Lists all the targets .