public class ConfigInjectionProcessor extends Object implements JsProcessor
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONFIG_GLOBAL_KEY_TPL |
protected static String |
CONFIG_INIT_ID |
protected static String |
CONFIG_INIT_TPL |
protected static String |
CONFIG_INJECT_CODE |
| Constructor and Description |
|---|
ConfigInjectionProcessor(FeatureRegistryProvider registryProvider,
ConfigProcessor configProcessor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
injectBaseConfig(String configJson,
JsResponseBuilder builder) |
protected void |
injectGlobalConfig(String configJson,
JsResponseBuilder builder) |
boolean |
process(JsRequest request,
JsResponseBuilder builder)
Populates or modifies the Javascript response.
|
protected static final String CONFIG_GLOBAL_KEY_TPL
protected static final String CONFIG_INIT_ID
protected static final String CONFIG_INIT_TPL
protected static final String CONFIG_INJECT_CODE
@Inject public ConfigInjectionProcessor(FeatureRegistryProvider registryProvider, ConfigProcessor configProcessor)
public boolean process(JsRequest request, JsResponseBuilder builder) throws JsException
JsProcessorprocess in interface JsProcessorrequest - The JS request that originated this execution.builder - The response builder to work on.JsExceptionprotected void injectBaseConfig(String configJson, JsResponseBuilder builder)
protected void injectGlobalConfig(String configJson, JsResponseBuilder builder)
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.