public static location [ ] get ( nitro_service service , String ipfrom [ ] ) throws Exception { if ( ipfrom != null && ipfrom . length > 0 ) { location response [ ] = new location [ ipfrom . length ] ; location obj [ ] = new location [ ipfrom . length ] ; for ( int i = 0 ; i < ipfrom . length ; i ++ ) { obj [ i ] = new location ( ) ; obj [ i ] . set_ipfrom ( ipfrom [ i ] ) ; response [ i ] = ( location ) obj [ i ] . get_resource ( service ) ; } return response ; } return null ; }
Use this API to fetch location resources of given names .