public class WebScriptProcessor extends AbstractProcessor
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 responsible for encoding compatible links via the scripturl() template method.
| Modifier and Type | Field and Description |
|---|---|
static String |
WEBSCRIPT_SERVICE_SERVLET
The WebScript service servlet path
|
processorModelHelper| Constructor and Description |
|---|
WebScriptProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeBody(ProcessorContext pc,
ModelObject object)
Executes the "body" of the processor output using the given
processor context.
|
void |
executeHeader(ProcessorContext pc,
ModelObject object)
Executes the "header" of the processor output using the given
processor context.
|
boolean |
exists(ProcessorContext pc,
ModelObject object)
Indicates whether the engine responsible for processing
the body of the processor exists.
|
LocalWebScriptRuntimeContainer |
getContainer()
Gets the container bean.
|
org.springframework.extensions.webscripts.Registry |
getRegistry()
Gets the web scripts registry.
|
void |
setConfigService(org.springframework.extensions.config.ConfigService configService) |
void |
setContainer(LocalWebScriptRuntimeContainer containerBean)
Sets the container bean.
|
execute, getProperty, getRenderingDescriptor, setProcessorModelHelperpublic static final String WEBSCRIPT_SERVICE_SERVLET
public void setConfigService(org.springframework.extensions.config.ConfigService configService)
public org.springframework.extensions.webscripts.Registry getRegistry()
public void setContainer(LocalWebScriptRuntimeContainer containerBean)
containerBean - the new container beanpublic LocalWebScriptRuntimeContainer getContainer()
public void executeHeader(ProcessorContext pc, ModelObject object) throws RendererExecutionException
ProcessorexecuteHeader in interface ProcessorexecuteHeader in class AbstractProcessorpc - processorContextRendererExecutionExceptionpublic void executeBody(ProcessorContext pc, ModelObject object) throws RendererExecutionException
ProcessorexecuteBody in interface ProcessorexecuteBody in class AbstractProcessorpc - processorContextRendererExecutionExceptionpublic boolean exists(ProcessorContext pc, ModelObject object)
Processorpc - ProcessorContextobject - ModelObjectCopyright © 2005–2016 Alfresco Software. All rights reserved.