public class DefineObjectsTag extends TagSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BINDINGS_NAME
Default name for the scripting variable referencing the
javax.script.Bindings object (value is "bindings"). |
static String |
DEFAULT_LOG_NAME
Default name for the scripting variable referencing the log
org.slf4j.Logger (value is "log"). |
static 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"). |
static String |
DEFAULT_REQUEST_NAME
Default name for the scripting variable referencing the
SlingHttpServletRequest object (value is "slingRequest"). |
static String |
DEFAULT_RESOURCE_NAME
Default name for the scripting variable referencing the current
Resource object (value is "resource"). |
static String |
DEFAULT_RESOURCE_RESOLVER_NAME
Default name for the scripting variable referencing the current
ResourceResolver (value is "resourceResolver"). |
static String |
DEFAULT_RESPONSE_NAME
Default name for the scripting variable referencing the
SlingHttpServletResponse object (value is
"slingResponse"). |
static String |
DEFAULT_SLING_NAME
Default name for the scripting variable referencing the current
SlingScriptHelper (value is "sling"). |
EVAL_BODY_AGAINEVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE| Constructor and Description |
|---|
DefineObjectsTag()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
Creates Scripting variables for:
SlingHttpServletRequest
SlingHttpServletResponse
current Resource
current Node (if resource is adaptable to a node)
current Logger
current SlingScriptHelper
|
void |
release()
Release state.
|
void |
setBindingsName(String name) |
void |
setLogName(String name) |
void |
setNodeName(String name) |
void |
setPageContext(PageContext pageContext)
Set the page context.
|
void |
setRequestName(String requestName) |
void |
setResourceName(String name) |
void |
setResourceResolverName(String name) |
void |
setResponseName(String responseName) |
void |
setSlingName(String name) |
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValuepublic static final String DEFAULT_REQUEST_NAME
SlingHttpServletRequest object (value is "slingRequest").public static final String DEFAULT_RESPONSE_NAME
SlingHttpServletResponse object (value is
"slingResponse").public static final String DEFAULT_RESOURCE_NAME
Resource object (value is "resource").public static final String DEFAULT_NODE_NAME
Resource object if it is based on a
JCR node (value is "currentNode").public static final String DEFAULT_BINDINGS_NAME
javax.script.Bindings object (value is "bindings").public static final String DEFAULT_LOG_NAME
org.slf4j.Logger (value is "log").public static final String DEFAULT_SLING_NAME
SlingScriptHelper (value is "sling").public static final String DEFAULT_RESOURCE_RESOLVER_NAME
ResourceResolver (value is "resourceResolver").public int doEndTag()
SlingHttpServletRequest
SlingHttpServletResponse
Resource
Node (if resource is adaptable to a node)
Logger
SlingScriptHelper
doEndTag in interface TagdoEndTag in class TagSupportTag.EVAL_PAGE.Tag.doEndTag()public void setPageContext(PageContext pageContext)
TagSupportsetPageContext in interface TagsetPageContext in class TagSupportpageContext - The PageContext.Tag.setPageContext(javax.servlet.jsp.PageContext)public void setRequestName(String requestName)
public void setResponseName(String responseName)
public void setResourceName(String name)
public void setNodeName(String name)
public void setLogName(String name)
public void setSlingName(String name)
public void setResourceResolverName(String name)
public void setBindingsName(String name)
public void release()
TagSupportrelease in interface Tagrelease in class TagSupportTag.release()Copyright © 2010 - 2020 Adobe. All Rights Reserved