Class DefineObjectsTag

    • Field Detail

      • DEFAULT_REQUEST_NAME

        public static final java.lang.String DEFAULT_REQUEST_NAME
        Default name for the scripting variable referencing the SlingHttpServletRequest object (value is "slingRequest").
        See Also:
        Constant Field Values
      • DEFAULT_RESPONSE_NAME

        public static final java.lang.String DEFAULT_RESPONSE_NAME
        Default name for the scripting variable referencing the SlingHttpServletResponse object (value is "slingResponse").
        See Also:
        Constant Field Values
      • DEFAULT_RESOURCE_NAME

        public static final java.lang.String DEFAULT_RESOURCE_NAME
        Default name for the scripting variable referencing the current Resource object (value is "resource").
        See Also:
        Constant Field Values
      • DEFAULT_NODE_NAME

        public static final java.lang.String DEFAULT_NODE_NAME
        Default name for the scripting variable referencing the JCR node underlying the current Resource object if it is based on a JCR node (value is "currentNode").
        See Also:
        Constant Field Values
      • DEFAULT_BINDINGS_NAME

        public static final java.lang.String DEFAULT_BINDINGS_NAME
        Default name for the scripting variable referencing the javax.script.Bindings object (value is "bindings").
        See Also:
        Constant Field Values
      • DEFAULT_LOG_NAME

        public static final java.lang.String DEFAULT_LOG_NAME
        Default name for the scripting variable referencing the log org.slf4j.Logger (value is "log").
        See Also:
        Constant Field Values
      • DEFAULT_SLING_NAME

        public static final java.lang.String DEFAULT_SLING_NAME
        Default name for the scripting variable referencing the current SlingScriptHelper (value is "sling").
        See Also:
        Constant Field Values
      • DEFAULT_RESOURCE_RESOLVER_NAME

        public static final java.lang.String DEFAULT_RESOURCE_RESOLVER_NAME
        Default name for the scripting variable referencing the current ResourceResolver (value is "resourceResolver").
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefineObjectsTag

        public DefineObjectsTag()
        Default constructor.
    • Method Detail

      • doEndTag

        public int doEndTag()
        Creates Scripting variables for:
        • SlingHttpServletRequest
        • SlingHttpServletResponse
        • current Resource
        • current Node (if resource is adaptable to a node)
        • current Logger
        • current SlingScriptHelper
        Specified by:
        doEndTag in interface Tag
        Overrides:
        doEndTag in class TagSupport
        Returns:
        always Tag.EVAL_PAGE.
        See Also:
        Tag.doEndTag()
      • setRequestName

        public void setRequestName​(java.lang.String requestName)
      • setResponseName

        public void setResponseName​(java.lang.String responseName)
      • setResourceName

        public void setResourceName​(java.lang.String name)
      • setNodeName

        public void setNodeName​(java.lang.String name)
      • setLogName

        public void setLogName​(java.lang.String name)
      • setSlingName

        public void setSlingName​(java.lang.String name)
      • setResourceResolverName

        public void setResourceResolverName​(java.lang.String name)
      • setBindingsName

        public void setBindingsName​(java.lang.String name)