|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.surf.render.AbstractRenderer
public abstract class AbstractRenderer
An abstract implementation of the Renderer interface that can be extended by application developers for quick implementation.
| Field Summary | |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext
|
protected static org.apache.commons.logging.Log |
logger
|
protected Processor |
processor
|
| Constructor Summary | |
|---|---|
AbstractRenderer()
|
|
| Method Summary | |
|---|---|
void |
all(RenderContext context)
Executes the renderer in the "all" mode |
abstract void |
body(RenderContext context)
Executes the renderer in the "body" mode |
void |
footer(RenderContext context)
Executes the renderer in the "footer" mode |
org.springframework.context.ApplicationContext |
getApplicationContext()
Gets the application context. |
Processor |
getProcessor()
|
RenderService |
getRenderService()
Gets the render service. |
WebFrameworkServiceRegistry |
getServiceRegistry()
Gets the service registry. |
void |
header(RenderContext context)
Executes the renderer in the "head" mode |
void |
init()
Called upon initialization of the renderer |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
|
protected void |
print(javax.servlet.http.HttpServletResponse response,
String str)
Commits the given string to the response output stream |
protected static void |
print(RenderContext context,
String str)
Commits the given string to the response output stream |
void |
render(RenderContext context,
RenderFocus focus)
Executes the renderer in the given focus |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setProcessor(Processor processor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log logger
protected org.springframework.context.ApplicationContext applicationContext
protected Processor processor
| Constructor Detail |
|---|
public AbstractRenderer()
| Method Detail |
|---|
public void setProcessor(Processor processor)
public Processor getProcessor()
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic org.springframework.context.ApplicationContext getApplicationContext()
public WebFrameworkServiceRegistry getServiceRegistry()
public RenderService getRenderService()
public void init()
Renderer
init in interface Renderer
public void render(RenderContext context,
RenderFocus focus)
throws RendererExecutionException
Renderer
render in interface RendererRendererExecutionException
public void all(RenderContext context)
throws RendererExecutionException
Renderer
all in interface RendererRendererExecutionException
public void header(RenderContext context)
throws RendererExecutionException
Renderer
header in interface RendererRendererExecutionException
public abstract void body(RenderContext context)
throws RendererExecutionException
Renderer
body in interface RendererRendererExecutionException
public void footer(RenderContext context)
throws RendererExecutionException
Renderer
footer in interface RendererRendererExecutionException
protected void print(javax.servlet.http.HttpServletResponse response,
String str)
throws RendererExecutionException
response - the responsestr - the string
RendererExecutionException
protected static void print(RenderContext context,
String str)
throws RendererExecutionException
context - the render contextstr - the string
RendererExecutionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||