java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.aendvari.tethys.tag.data.DataTag
com.aendvari.tethys.tag.context.ContextTag
- All Implemented Interfaces:
- ContextAncestorTag, com.aendvari.tethys.tag.data.DataAncestorTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public abstract class ContextTag
- extends com.aendvari.tethys.tag.data.DataTag
- implements ContextAncestorTag
A base class for all tags requiring context.
|
Constructor Summary |
ContextTag()
Default constructor, all subclasses are required to only define a public
constructor with the same signature, and to call the superclass constructor. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected java.lang.String context
- The relative context in which this tag resides.
ContextTag
public ContextTag()
- Default constructor, all subclasses are required to only define a public
constructor with the same signature, and to call the superclass constructor.
getContext
public java.lang.String getContext()
setContext
public void setContext(java.lang.String context)
determineContext
protected com.aendvari.tethys.context.Context determineContext(com.aendvari.tethys.context.ContextMap contextMap,
java.lang.Class ancestorClass,
java.lang.reflect.Method contextMethod)
throws javax.servlet.jsp.JspTagException
- Determines the com.aendvari.tethys.context.Context of this tag.
The
context parameter is used to select the com.aendvari.tethys.context.Context.
getParentContext
public com.aendvari.tethys.context.Context getParentContext(com.aendvari.tethys.context.ContextMap contextMap,
javax.servlet.jsp.tagext.TagSupport tagSupport,
java.lang.Class ancestorClass,
java.lang.reflect.Method contextMethod)
throws javax.servlet.jsp.JspTagException
- Returns the parent com.aendvari.tethys.context.Context for this tag.
release
public void release()
- Release all allocated resources.
- Specified by:
release in interface javax.servlet.jsp.tagext.Tag