Skip to content

Globals

Globals object is used to store and manage properties in the global store.

Basic Usage

var globals = require("core/v4/globals");
var response = require("http/v4/response");

globals.set("attr1", "value1");
var attr = globals.get("attr1");

response.println("[Attribute]: " + attr);
response.flush();
response.close();

Functions


Function Description Returns
get(key) Returns the value per key from the global parameters string
set(key, value) Sets the value per key to the global parameters -
Back to top