Package org.apache.wiki.tags
Class PluginTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.apache.wiki.tags.WikiBodyTag
-
- org.apache.wiki.tags.PluginTag
-
- All Implemented Interfaces:
java.io.Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag,javax.servlet.jsp.tagext.TryCatchFinally
public class PluginTag extends WikiBodyTag
Inserts any Wiki plugin. The body of the tag becomes then the body for the plugin.Attributes
- plugin - name of the plugin you want to insert.
- args - An argument string for the tag.
- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.wiki.tags.WikiBodyTag
m_wikiContext
-
-
Constructor Summary
Constructors Constructor Description PluginTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoAfterBody()intdoEndTag()intdoWikiStartTag()A local stub for doing tags.voidrelease()voidsetArgs(java.lang.String a)Set the argument string to the plugin.voidsetPlugin(java.lang.String p)Set the name of the plugin to execute.-
Methods inherited from class org.apache.wiki.tags.WikiBodyTag
doCatch, doFinally, doStartTag
-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
-
-
-
-
Constructor Detail
-
PluginTag
public PluginTag()
-
-
Method Detail
-
release
public void release()
- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag- Overrides:
releasein classjavax.servlet.jsp.tagext.BodyTagSupport
-
setPlugin
public void setPlugin(java.lang.String p)
Set the name of the plugin to execute.- Parameters:
p- Name of the plugin.
-
setArgs
public void setArgs(java.lang.String a)
Set the argument string to the plugin.- Parameters:
a- Arguments string.
-
doWikiStartTag
public int doWikiStartTag() throws javax.servlet.jsp.JspException, java.io.IOException
A local stub for doing tags. This is just called after the local variables have been set.- Specified by:
doWikiStartTagin classWikiBodyTag- Returns:
- As doStartTag()
- Throws:
javax.servlet.jsp.JspExceptionjava.io.IOException
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException
- Specified by:
doEndTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspException
-
doAfterBody
public int doAfterBody() throws javax.servlet.jsp.JspException
- Specified by:
doAfterBodyin interfacejavax.servlet.jsp.tagext.IterationTag- Overrides:
doAfterBodyin classjavax.servlet.jsp.tagext.BodyTagSupport- Throws:
javax.servlet.jsp.JspException
-
-