|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.surf.render.AbstractProcessor
org.springframework.extensions.webscripts.WebScriptProcessor
public class WebScriptProcessor
The WebScriptRenderer is an implementation of Renderable which describes a rendering engine that the Web Framework can use to execute a web script.
A WebScriptRenderer can be used to execute a web script for any purpose so long as an appropriate RendererContext instance is passed to it.
Most commonly, the RendererContext passed in will describe a Component.
The renderer supports "full page refresh" link backs to a webscript. The LocalWebScriptResponse object is responsable for encoding compatible links via the scripturl() template method.
| Field Summary | |
|---|---|
static String |
WEBSCRIPT_SERVICE_SERVLET
The WebScript service servlet path |
| Constructor Summary | |
|---|---|
WebScriptProcessor()
|
|
| Method Summary | |
|---|---|
void |
executeBody(ProcessorContext pc)
Executes the "body" of the processor output using the given processor context. |
void |
executeHeader(ProcessorContext pc)
Executes the "header" of the processor output using the given processor context. |
boolean |
exists(ProcessorContext pc)
Indicates whether the engine responsible for processing the body of the processor exists. |
LocalWebScriptRuntimeContainer |
getContainer()
Gets the container bean. |
Registry |
getRegistry()
Gets the web scripts registry. |
void |
init(org.springframework.context.ApplicationContext applicationContext)
Initialisation hook point. |
void |
setContainer(LocalWebScriptRuntimeContainer containerBean)
Sets the container bean. |
| Methods inherited from class org.springframework.extensions.surf.render.AbstractProcessor |
|---|
execute, executeFooter, getProperty, getRenderingDescriptor, getRenderingDescriptor, onApplicationEvent, setApplicationContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WEBSCRIPT_SERVICE_SERVLET
| Constructor Detail |
|---|
public WebScriptProcessor()
| Method Detail |
|---|
public void init(org.springframework.context.ApplicationContext applicationContext)
Processor
init in interface Processorinit in class AbstractProcessorapplicationContext - the application contextpublic Registry getRegistry()
public void setContainer(LocalWebScriptRuntimeContainer containerBean)
containerBean - the new container beanpublic LocalWebScriptRuntimeContainer getContainer()
public void executeHeader(ProcessorContext pc)
throws RendererExecutionException
Processor
executeHeader in interface ProcessorexecuteHeader in class AbstractProcessorpc - processorContext
RendererExecutionException
public void executeBody(ProcessorContext pc)
throws RendererExecutionException
Processor
executeBody in interface ProcessorexecuteBody in class AbstractProcessorpc - processorContext
RendererExecutionExceptionpublic boolean exists(ProcessorContext pc)
Processor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||