[Registry-dev] API method to get resource metadata

Chathura C. Ekanayake chathura at wso2.com
Thu Jan 3 01:22:49 PST 2008


We (Dr. Sanjiva, Deepal and I) discussed about adding a new method to 
the Registry API to get the resource metadata without retrieving the 
resource content.
The method we agreed is:

Resource getResourceMatadata(String path);

This method returns a Resource object with content set to null. There 
are many use cases for this method in the registry web UI and in the APP 
interface.
In both these cases, we need to get the metadata. But we need the actual 
content only when a user wants to download the resource.
Therefore, we can use getResourceMatadata(...) method in these scenarios 
to process requests efficiently.

Thanks,
Chathura



More information about the Registry-dev mailing list