Class ScriptHelper

java.lang.Object
org.apache.sling.scripting.core.ScriptHelper
All Implemented Interfaces:
SlingScriptHelper

public class ScriptHelper extends Object implements SlingScriptHelper
Simple script helper providing access to the (wrapped) response, the on-demand writer and a simple API for request inclusion. Instances of this class are made available to the scripts as the global sling variable. Client code using this object should take care to call cleanup() when the object is not used anymore!