This documentation is for WSO2 Application Server 5.2.0. View documentation for the latest release.
Page Comparison - Adding a Resource with API (v.2 vs v.3) - Application Server 5.2.0 - WSO2 Documentation

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
Resource r1 = registry.newResource();
String str = "My File Content";
r1.setContent(str.getBytes());
registry.put("/c1/c2/r1", r1);

Adding a Resource - For information on adding a resource using the Management Console.