|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.templating.AbstractRenderer info.magnolia.module.templating.renderers.AbstractTemplateRenderer info.magnolia.module.templating.renderers.ServletTemplateRenderer
public class ServletTemplateRenderer
Servlet template renderer, mapped to template type servlet
. Servlet templates can have a
path
parameter like the jsp ones (request is forwarded to the specified path), or a
className
parameter.
If className
is set the servlet class will be instantiated and service() will be called (note the
servlet will not properly be loaded by the container in this case, so don't rely on other methods except for
doGet()/doPost() being called).
Constructor Summary | |
---|---|
ServletTemplateRenderer()
|
Method Summary | |
---|---|
protected Map |
newContext()
Create a new context object which is a map. |
protected void |
onRender(Content content,
RenderableDefinition definition,
Writer out,
Map ctx,
String templatePath)
Finally execute the rendering. |
void |
renderTemplate(Content content,
Template template,
Writer out)
Generates the actual output using the selected template. |
Methods inherited from class info.magnolia.module.templating.renderers.AbstractTemplateRenderer |
---|
renderTemplate |
Methods inherited from class info.magnolia.module.templating.AbstractRenderer |
---|
determineTemplatePath, getAggregationStateSafely, getAggrigationStateSafely, getMagnoliaTemplatingUtilities, getMainContentSafely, getPageAttributeName, newModel, render, restoreContext, saveAttribute, saveContextState, setContextAttribute, setupContext, wrapNodeForModel, wrapNodeForTemplate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletTemplateRenderer()
Method Detail |
---|
public void renderTemplate(Content content, Template template, Writer out) throws IOException, RenderException
TemplateRenderer
renderTemplate
in interface TemplateRenderer
renderTemplate
in class AbstractTemplateRenderer
IOException
RenderException
protected Map newContext()
AbstractRenderer
newContext
in class AbstractRenderer
protected void onRender(Content content, RenderableDefinition definition, Writer out, Map ctx, String templatePath) throws RenderException
AbstractRenderer
onRender
in class AbstractRenderer
content
- TODO
RenderException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |