Class DefineObjectsTag

java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.sling.scripting.jsp.taglib.DefineObjectsTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag
Direct Known Subclasses:
DefineObjectsTag

public class DefineObjectsTag extends TagSupport
See Also:
  • Field Details

    • DEFAULT_REQUEST_NAME

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

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

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

      public static final 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:
    • DEFAULT_BINDINGS_NAME

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

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

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

      public static final String DEFAULT_RESOURCE_RESOLVER_NAME
      Default name for the scripting variable referencing the current ResourceResolver (value is "resourceResolver").
      See Also:
  • Constructor Details

    • DefineObjectsTag

      public DefineObjectsTag()
      Default constructor.
  • Method Details

    • 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:
    • setPageContext

      public void setPageContext(PageContext pageContext)
      Description copied from class: TagSupport
      Set the page context.
      Specified by:
      setPageContext in interface Tag
      Overrides:
      setPageContext in class TagSupport
      Parameters:
      pageContext - The PageContext.
      See Also:
    • setRequestName

      public void setRequestName(String requestName)
    • setResponseName

      public void setResponseName(String responseName)
    • setResourceName

      public void setResourceName(String name)
    • setNodeName

      public void setNodeName(String name)
    • setLogName

      public void setLogName(String name)
    • setSlingName

      public void setSlingName(String name)
    • setResourceResolverName

      public void setResourceResolverName(String name)
    • setBindingsName

      public void setBindingsName(String name)
    • release

      public void release()
      Description copied from class: TagSupport
      Release state.
      Specified by:
      release in interface Tag
      Overrides:
      release in class TagSupport
      See Also: