This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Creating a Resource from a Given URL
If a resource needs to be created with content from any given URL, the following line of code can be used to add a resource from a given URL to a suggested location. The real location to which the resource was added is returned. The template_resource
should contain metadata of the resource that a user wants to add.
String real_location = registry.importResource("c1/c2/r3", "http://wso2.com", template_resource);
See also Governance Artifacts to learn more information about this feature in Governance Registry.