Class ScriptHelper

  • All Implemented Interfaces:
    SlingScriptHelper

    public class ScriptHelper
    extends java.lang.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!