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/.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Once the Registry instance is in place (embedded registry or remote registry), navigation is straightforward. It is the same as working with the Registry API. If we have a resource called "/foo/c1" in the Registry, you can access it using the Registry instance as given below:

Resource resource = registry.get("/foo/c1");

The resource object will represent the actual resource object in the Registry. But if the resource is a collection, then the object will represent the collection.

Tip

Once we have a registry instance, we do not need to pass a complete URL for all invocations. It is adequate to pass only a relative path to a resource.

  • No labels