public class DefineObjectsTag
extends TagSupport
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BINDINGS_NAME
Default name for the scripting variable referencing the
javax.script.Bindings object (value is "bindings"). |
static java.lang.String |
DEFAULT_LOG_NAME
Default name for the scripting variable referencing the log
org.slf4j.Logger (value is "log"). |
static 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"). |
static java.lang.String |
DEFAULT_REQUEST_NAME
Default name for the scripting variable referencing the
SlingHttpServletRequest object (value is "slingRequest"). |
static java.lang.String |
DEFAULT_RESOURCE_NAME
Default name for the scripting variable referencing the current
Resource object (value is "resource"). |
static java.lang.String |
DEFAULT_RESOURCE_RESOLVER_NAME
Default name for the scripting variable referencing the current
ResourceResolver (value is "resourceResolver"). |
static java.lang.String |
DEFAULT_RESPONSE_NAME
Default name for the scripting variable referencing the
SlingHttpServletResponse object (value is
"slingResponse"). |
static java.lang.String |
DEFAULT_SLING_NAME
Default name for the scripting variable referencing the current
SlingScriptHelper (value is "sling"). |
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() |
void |
setBindingsName(java.lang.String name) |
void |
setLogName(java.lang.String name) |
void |
setNodeName(java.lang.String name) |
void |
setPageContext(PageContext pageContext) |
void |
setRequestName(java.lang.String requestName) |
void |
setResourceName(java.lang.String name) |
void |
setResourceResolverName(java.lang.String name) |
void |
setResponseName(java.lang.String responseName) |
void |
setSlingName(java.lang.String name) |
public static final java.lang.String DEFAULT_REQUEST_NAME
SlingHttpServletRequest
object (value is "slingRequest").public static final java.lang.String DEFAULT_RESPONSE_NAME
SlingHttpServletResponse
object (value is
"slingResponse").public static final java.lang.String DEFAULT_RESOURCE_NAME
Resource
object (value is "resource").public static final java.lang.String DEFAULT_NODE_NAME
Resource
object if it is based on a
JCR node (value is "currentNode").public static final java.lang.String DEFAULT_BINDINGS_NAME
javax.script.Bindings
object (value is "bindings").public static final java.lang.String DEFAULT_LOG_NAME
org.slf4j.Logger
(value is "log").public static final java.lang.String DEFAULT_SLING_NAME
SlingScriptHelper
(value is "sling").public static final java.lang.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
#EVAL_PAGE
.public void setPageContext(PageContext pageContext)
public void setRequestName(java.lang.String requestName)
public void setResponseName(java.lang.String responseName)
public void setResourceName(java.lang.String name)
public void setNodeName(java.lang.String name)
public void setLogName(java.lang.String name)
public void setSlingName(java.lang.String name)
public void setResourceResolverName(java.lang.String name)
public void setBindingsName(java.lang.String name)
public void release()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"