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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_BINDINGS_NAMEDefault name for the scripting variable referencing thejavax.script.Bindingsobject (value is "bindings").static StringDEFAULT_LOG_NAMEDefault name for the scripting variable referencing the logorg.slf4j.Logger(value is "log").static StringDEFAULT_NODE_NAMEDefault name for the scripting variable referencing the JCR node underlying the currentResourceobject if it is based on a JCR node (value is "currentNode").static StringDEFAULT_REQUEST_NAMEDefault name for the scripting variable referencing theSlingHttpServletRequestobject (value is "slingRequest").static StringDEFAULT_RESOURCE_NAMEDefault name for the scripting variable referencing the currentResourceobject (value is "resource").static StringDEFAULT_RESOURCE_RESOLVER_NAMEDefault name for the scripting variable referencing the currentResourceResolver(value is "resourceResolver").static StringDEFAULT_RESPONSE_NAMEDefault name for the scripting variable referencing theSlingHttpServletResponseobject (value is "slingResponse").static StringDEFAULT_SLING_NAMEDefault name for the scripting variable referencing the currentSlingScriptHelper(value is "sling").-
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
-
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
-
-
Constructor Summary
Constructors Constructor Description DefineObjectsTag()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoEndTag()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)voidsetResourceResolverName(String name)voidsetResponseName(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 Detail
-
DEFAULT_REQUEST_NAME
public static final String DEFAULT_REQUEST_NAME
Default name for the scripting variable referencing theSlingHttpServletRequestobject (value is "slingRequest").- See Also:
- Constant Field Values
-
DEFAULT_RESPONSE_NAME
public static final String DEFAULT_RESPONSE_NAME
Default name for the scripting variable referencing theSlingHttpServletResponseobject (value is "slingResponse").- See Also:
- Constant Field Values
-
DEFAULT_RESOURCE_NAME
public static final String DEFAULT_RESOURCE_NAME
Default name for the scripting variable referencing the currentResourceobject (value is "resource").- See Also:
- Constant Field Values
-
DEFAULT_NODE_NAME
public static final String 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:
- Constant Field Values
-
DEFAULT_BINDINGS_NAME
public static final String DEFAULT_BINDINGS_NAME
Default name for the scripting variable referencing thejavax.script.Bindingsobject (value is "bindings").- See Also:
- Constant Field Values
-
DEFAULT_LOG_NAME
public static final String DEFAULT_LOG_NAME
Default name for the scripting variable referencing the logorg.slf4j.Logger(value is "log").- See Also:
- Constant Field Values
-
DEFAULT_SLING_NAME
public static final String DEFAULT_SLING_NAME
Default name for the scripting variable referencing the currentSlingScriptHelper(value is "sling").- See Also:
- Constant Field Values
-
DEFAULT_RESOURCE_RESOLVER_NAME
public static final String DEFAULT_RESOURCE_RESOLVER_NAME
Default name for the scripting variable referencing the currentResourceResolver(value is "resourceResolver").- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
Tag.doEndTag()
-
setPageContext
public void setPageContext(PageContext pageContext)
Description copied from class:TagSupportSet the page context.- Specified by:
setPageContextin interfaceTag- Overrides:
setPageContextin classTagSupport- Parameters:
pageContext- The PageContext.- See Also:
Tag.setPageContext(javax.servlet.jsp.PageContext)
-
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:TagSupportRelease state.- Specified by:
releasein interfaceTag- Overrides:
releasein classTagSupport- See Also:
Tag.release()
-
-