|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateService
Interface that defines a general purpose templating service interface.
Method Summary | |
---|---|
java.lang.String |
process(java.lang.String tmpl,
java.util.Map data)
Process the named template and return a String. |
void |
process(java.lang.String tmpl,
java.util.Map data,
java.io.OutputStream out)
Process the named template and write the output to the given stream. |
Method Detail |
---|
java.lang.String process(java.lang.String tmpl, java.util.Map data) throws ServiceException
tmpl
- String containing the template path.data
- Map instance containing the data to merge with the template.
ServiceException
- if the template cannot be processed.void process(java.lang.String tmpl, java.util.Map data, java.io.OutputStream out) throws ServiceException
tmpl
- String containing the template path.data
- Map instance containing the data to merge with the template.out
- OutputStream instance to write the output to.
ServiceException
- if the template cannot be processed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |