Package org.apache.wiki.tags
Class WikiTagBase
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.wiki.tags.WikiTagBase
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.TryCatchFinally
- Direct Known Subclasses:
AuthorTag,BaseURLTag,BreadcrumbsTag,CalendarTag,CheckLockTag,CheckRequestContextTag,CheckVersionTag,ContentEncodingTag,ContentTag,FeedDiscoveryTag,HasAttachmentsTag,IfNoSearchResultsTag,IncludeResourcesTag,IncludeTag,InsertDiffTag,InsertPageTag,MessagesTag,NextVersionTag,NoSuchPageTag,PageDateTag,PageNameTag,PageSizeTag,PageTypeTag,PageVersionTag,ParentPageNameTag,PermissionTag,PreviousVersionTag,RequestResourceTag,RSSImageLinkTag,SearchResultsSizeTag,SearchResultsTag,SetPaginationTag,SpamFilterInputsTag,TabTag,TemplateDirTag,UserCheckTag,UserNameTag,UserProfileTag,VariableTag,WikiLinkTag
public abstract class WikiTagBase extends javax.servlet.jsp.tagext.TagSupport implements javax.servlet.jsp.tagext.TryCatchFinally
Base class for JSPWiki tags. You do not necessarily have to derive from this class, since this does some initialization.
This tag is only useful if you're having an "empty" tag, with no body content.
- Since:
- 2.0
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected Contextm_wikiContextFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields 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 Constructor Description WikiTagBase() -
Method Summary
Modifier and Type Method Description voiddoCatch(java.lang.Throwable th)intdoEndTag()voiddoFinally()intdoStartTag()abstract intdoWikiStartTag()This method is allowed to do pretty much whatever he wants.voidinitTag()This method is called when the tag is encountered within a new request, but before the setXXX() methods are called.voidsetId(java.lang.String id)voidsetPageContext(javax.servlet.jsp.PageContext arg0)This method calls the parent setPageContext() but it also provides a way for a tag to initialize itself before any of the setXXX() methods are called.Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
m_wikiContext
-
-
Constructor Details
-
WikiTagBase
public WikiTagBase()
-
-
Method Details
-
setPageContext
This method calls the parent setPageContext() but it also provides a way for a tag to initialize itself before any of the setXXX() methods are called.- Specified by:
setPageContextin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
setPageContextin classjavax.servlet.jsp.tagext.TagSupport
-
initTag
This method is called when the tag is encountered within a new request, but before the setXXX() methods are called. The default implementation does nothing.- Since:
- 2.3.92
-
doStartTag
- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjavax.servlet.jsp.tagext.TagSupport- Throws:
javax.servlet.jsp.JspException
-
doWikiStartTag
This method is allowed to do pretty much whatever he wants. We then catch all mistakes.- Throws:
java.lang.Exception
-
doEndTag
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.TagSupport- Throws:
javax.servlet.jsp.JspException
-
doCatch
- Specified by:
doCatchin interfacejavax.servlet.jsp.tagext.TryCatchFinally- Throws:
java.lang.Throwable
-
doFinally
- Specified by:
doFinallyin interfacejavax.servlet.jsp.tagext.TryCatchFinally
-
setId
- Overrides:
setIdin classjavax.servlet.jsp.tagext.TagSupport
-