Package org.appng.taglib
Class TagletProcessor
- java.lang.Object
-
- org.appng.taglib.TagletProcessor
-
public class TagletProcessor extends Object
ATagletProcessor
is responsible for handling taglet-calls from a JSP- Author:
- Matthias Herlitzius, Matthias Müller
- See Also:
Taglet
,GlobalTaglet
,XMLTaglet
,GlobalXMLTaglet
-
-
Constructor Summary
Constructors Constructor Description TagletProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doWrite(Writer out, String result, Application application, String methodName)
MarshallService
getMarshallService()
StyleSheetProvider
getStyleSheetProvider()
boolean
perform(Site callingSite, Site executingSite, Application application, Map<String,String> tagletAttributes, Request applicationRequest, String methodName, String type, Writer out)
Performs the actual taglet-call.void
setMarshallService(MarshallService marshallService)
void
setStyleSheetProvider(StyleSheetProvider styleSheetProvider)
-
-
-
Method Detail
-
perform
public boolean perform(Site callingSite, Site executingSite, Application application, Map<String,String> tagletAttributes, Request applicationRequest, String methodName, String type, Writer out) throws JAXBException, TransformerConfigurationException, FileNotFoundException, BusinessException
Performs the actual taglet-call.- Parameters:
callingSite
- theSite
where the taglet-call happenedexecutingSite
- theSite
that actually executes the tagletapplication
- theApplication
from where the taglet comes fromtagletAttributes
- the attributes of the taglet-callapplicationRequest
- the currentRequest
methodName
- the name of the taglet to be calledtype
- the type of the taglet, may betext
orxml
out
- aWriter
used to write the output of the taglet- Returns:
true
if the JSP should be further processed,false
otherwise- Throws:
JAXBException
TransformerConfigurationException
FileNotFoundException
BusinessException
-
doWrite
protected void doWrite(Writer out, String result, Application application, String methodName)
-
getMarshallService
public MarshallService getMarshallService()
-
setMarshallService
public void setMarshallService(MarshallService marshallService)
-
getStyleSheetProvider
public StyleSheetProvider getStyleSheetProvider()
-
setStyleSheetProvider
public void setStyleSheetProvider(StyleSheetProvider styleSheetProvider)
-
-