@Keerthi0555
If you want to iterate through all the resources then go with iterator.
If you want a specific resource(s) with specific property then search using query builder.
Depends on your use case.
@Keerthi0555
You missed single quote at the end of component path.
String queryString = "SELECT * FROM [nt:unstructured] AS node WHERE ISDESCENDANTNODE(node," +path+")"+ "AND [sling:resourceType] = 'apps/components/componentName'"
Running command prompt as admin will fix the build issue. If you don't have admin right in your system then set includeDispatcherConfig = n and run the command.
This is how we should get the header value in dispatcher.
%{HTTP:X-AEM-CLIENT-COUNTRY}
I was using like this %{HTTP_X-AEM-CLIENT-COUNTRY}, which didn't work.