Package org.appng.taglib
Class TagletAdapter
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- javax.servlet.jsp.tagext.BodyTagSupport
-
- org.appng.taglib.TagletAdapter
-
- All Implemented Interfaces:
Serializable
,javax.servlet.jsp.tagext.BodyTag
,javax.servlet.jsp.tagext.IterationTag
,javax.servlet.jsp.tagext.JspTag
,javax.servlet.jsp.tagext.Tag
,ParameterOwner
public class TagletAdapter extends javax.servlet.jsp.tagext.BodyTagSupport implements ParameterOwner
This class wraps an appNG taglet (Taglet
/GlobalTaglet
/XMLTaglet
/GlobalXMLTaglet
) into anTag
. Attributes:- application - the name of the
Application
that contains the taglet - method - the bean name of the taglet
- type - the type of the taglet, one of
text
orxml
<appNG:taglet application="acme" method="tagletname"> <appNG:param name="foo">bar</appNG:param> <appNG:param name="jin">fizzbar</appNG:param> </appNG:taglet>
- Author:
- Matthias Herlitzius, Matthias Müller
- See Also:
Taglet
,GlobalTaglet
,XMLTaglet
,GlobalXMLTaglet
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TagletAdapter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(String name, String value)
int
doEndTag()
int
doStartTag()
protected Environment
getEnvironment()
protected MultiSiteSupport
getMultiSiteSupport(javax.servlet.http.HttpServletRequest servletRequest, Environment environment)
static Request
getRequest(javax.servlet.jsp.PageContext pageContext)
void
setApplication(String application)
set the application namevoid
setMethod(String method)
set the method namevoid
setPageContext(javax.servlet.jsp.PageContext pageContext)
void
setType(String type)
set the taglet type-
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
-
-
-
Method Detail
-
setApplication
public void setApplication(String application)
set the application name- Parameters:
application
-
-
setMethod
public void setMethod(String method)
set the method name- Parameters:
method
-
-
setType
public void setType(String type)
set the taglet type- Parameters:
type
-
-
setPageContext
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
- Specified by:
setPageContext
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
setPageContext
in classjavax.servlet.jsp.tagext.TagSupport
-
getRequest
public static Request getRequest(javax.servlet.jsp.PageContext pageContext)
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
-
doEndTag
public final int doEndTag()
- Specified by:
doEndTag
in interfacejavax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in classjavax.servlet.jsp.tagext.BodyTagSupport
-
getMultiSiteSupport
protected MultiSiteSupport getMultiSiteSupport(javax.servlet.http.HttpServletRequest servletRequest, Environment environment) throws javax.servlet.jsp.JspException
- Throws:
javax.servlet.jsp.JspException
-
getEnvironment
protected Environment getEnvironment()
-
addParameter
public void addParameter(String name, String value)
- Specified by:
addParameter
in interfaceParameterOwner
-
-