Hi,
I want to retrieve all the resources under a resource path.
I found below get(string,int,int) retrieve a resource collection under
given path. However length or the number of resources are not known in
advance.
get(path, startIndex, lenght)
It is possible to use an very large value as length, however it seems as n
hack.
So currently as an alternative I am using following alternative.
if (resource instanceof Collection) {
Collection collection = (Collection) resource;
String[] resources = collection.getChildren();
} else {
}
My concern is are there any API or more cleaner workaround where I can
accomplish the task.
--
Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev