Class AbstractDispatcherTagHandler
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.apache.sling.scripting.jsp.taglib.AbstractDispatcherTagHandler
-
- All Implemented Interfaces:
java.io.Serializable
,IterationTag
,JspTag
,Tag
- Direct Known Subclasses:
ForwardTagHandler
,IncludeTagHandler
public abstract class AbstractDispatcherTagHandler extends TagSupport
TheIncludeTagHandler
implements the<sling:include>
custom tag.- See Also:
- Serialized Form
-
-
Field Summary
-
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 AbstractDispatcherTagHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
doEndTag()
Called after the body has been processed.void
release()
Release state.void
setAddSelectors(java.lang.String selectors)
void
setPageContext(PageContext pageContext)
Set the page context.void
setPath(java.lang.String path)
void
setReplaceSelectors(java.lang.String selectors)
void
setReplaceSuffix(java.lang.String suffix)
void
setResource(Resource rsrc)
void
setResourceType(java.lang.String rsrcType)
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
-
-
-
Method Detail
-
doEndTag
public int doEndTag() throws JspException
Called after the body has been processed.- Specified by:
doEndTag
in interfaceTag
- Overrides:
doEndTag
in classTagSupport
- Returns:
- whether additional evaluations of the body are desired
- Throws:
JspException
- if an error occurs while processing this tag- See Also:
Tag.doEndTag()
-
setPageContext
public void setPageContext(PageContext pageContext)
Description copied from class:TagSupport
Set the page context.- Specified by:
setPageContext
in interfaceTag
- Overrides:
setPageContext
in classTagSupport
- Parameters:
pageContext
- The PageContext.- See Also:
Tag.setPageContext(javax.servlet.jsp.PageContext)
-
setResource
public void setResource(Resource rsrc)
-
setPath
public void setPath(java.lang.String path)
-
setResourceType
public void setResourceType(java.lang.String rsrcType)
-
setReplaceSelectors
public void setReplaceSelectors(java.lang.String selectors)
-
setAddSelectors
public void setAddSelectors(java.lang.String selectors)
-
setReplaceSuffix
public void setReplaceSuffix(java.lang.String suffix)
-
release
public void release()
Description copied from class:TagSupport
Release state.- Specified by:
release
in interfaceTag
- Overrides:
release
in classTagSupport
- See Also:
Tag.release()
-
-