Registry

Registry object gives access to the content in the repository and also the pre-delivered content

Version 4.x

Basic Usage


var response = require("http/v4/response");
var repositoryContent = require("platform/v4/registry");

var text = repositoryContent.getText("platform/v4/registry.js");

response.println(text);
response.flush();
response.close();

Definition

Functions


Function Description Returns
getContent(path) Gets the content of resource by path, as byte array array of bytes
getText(path) Gets the content of resource by path, as text string

Compatibility

Rhino Nashorn V8 Graal

Edit