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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault name for the scripting variable referencing thejavax.script.Bindingsobject (value is "bindings").static final StringDefault name for the scripting variable referencing the logorg.slf4j.Logger(value is "log").static final StringDefault name for the scripting variable referencing the JCR node underlying the currentResourceobject if it is based on a JCR node (value is "currentNode").static final StringDefault name for the scripting variable referencing theSlingHttpServletRequestobject (value is "slingRequest").static final StringDefault name for the scripting variable referencing the currentResourceobject (value is "resource").static final StringDefault name for the scripting variable referencing the currentResourceResolver(value is "resourceResolver").static final StringDefault name for the scripting variable referencing theSlingHttpServletResponseobject (value is "slingResponse").static final StringDefault name for the scripting variable referencing the currentSlingScriptHelper(value is "sling").Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()Creates Scripting variables for:SlingHttpServletRequestSlingHttpServletResponsecurrentResourcecurrentNode(if resource is adaptable to a node) currentLoggercurrentSlingScriptHelpervoidrelease()Release state.voidsetBindingsName(String name) voidsetLogName(String name) voidsetNodeName(String name) voidsetPageContext(PageContext pageContext) Set the page context.voidsetRequestName(String requestName) voidsetResourceName(String name) voidvoidsetResponseName(String responseName) voidsetSlingName(String name) Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
Field Details
-
DEFAULT_REQUEST_NAME
Default name for the scripting variable referencing theSlingHttpServletRequestobject (value is "slingRequest").- See Also:
-
DEFAULT_RESPONSE_NAME
Default name for the scripting variable referencing theSlingHttpServletResponseobject (value is "slingResponse").- See Also:
-
DEFAULT_RESOURCE_NAME
Default name for the scripting variable referencing the currentResourceobject (value is "resource").- See Also:
-
DEFAULT_NODE_NAME
Default name for the scripting variable referencing the JCR node underlying the currentResourceobject if it is based on a JCR node (value is "currentNode").- See Also:
-
DEFAULT_BINDINGS_NAME
Default name for the scripting variable referencing thejavax.script.Bindingsobject (value is "bindings").- See Also:
-
DEFAULT_LOG_NAME
Default name for the scripting variable referencing the logorg.slf4j.Logger(value is "log").- See Also:
-
DEFAULT_SLING_NAME
Default name for the scripting variable referencing the currentSlingScriptHelper(value is "sling").- See Also:
-
DEFAULT_RESOURCE_RESOLVER_NAME
Default name for the scripting variable referencing the currentResourceResolver(value is "resourceResolver").- See Also:
-
-
Constructor Details
-
DefineObjectsTag
public DefineObjectsTag()Default constructor.
-
-
Method Details
-
doEndTag
public int doEndTag()Creates Scripting variables for:SlingHttpServletRequestSlingHttpServletResponse- current
Resource - current
Node(if resource is adaptable to a node) - current
Logger - current
SlingScriptHelper
- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classTagSupport- Returns:
- always
Tag.EVAL_PAGE. - See Also:
-
setPageContext
Description copied from class:TagSupportSet the page context.- Specified by:
setPageContextin interfaceTag- Overrides:
setPageContextin classTagSupport- Parameters:
pageContext- The PageContext.- See Also:
-
setRequestName
-
setResponseName
-
setResourceName
-
setNodeName
-
setLogName
-
setSlingName
-
setResourceResolverName
-
setBindingsName
-
release
public void release()Description copied from class:TagSupportRelease state.- Specified by:
releasein interfaceTag- Overrides:
releasein classTagSupport- See Also:
-