public abstract class AbstractConfiguration extends Object implements org.mule.api.lifecycle.Initialisable, org.mule.api.context.MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.raml.model.Raml |
api |
static String |
APPLICATION_RAML |
protected org.mule.api.construct.FlowConstruct |
flowConstruct |
protected org.slf4j.Logger |
logger |
protected org.mule.api.MuleContext |
muleContext |
protected String |
raml |
protected Map<String,FlowResolver> |
restFlowMapWrapper |
protected Map<URIPattern,org.raml.model.Resource> |
routingTable |
protected com.google.common.cache.LoadingCache<String,URIPattern> |
uriPatternCache |
protected com.google.common.cache.LoadingCache<String,URIResolver> |
uriResolverCache |
| Constructor and Description |
|---|
AbstractConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsoleUrl(String url) |
static Collection<AbstractConfiguration> |
getAllConfigurations(org.mule.api.MuleContext muleContext) |
org.raml.model.Raml |
getApi() |
String |
getApikitRaml(org.mule.api.MuleEvent event) |
String |
getApikitRaml(String schemeHostPort)
Returns the RAML descriptor of the API.
|
String |
getEndpointAddress(org.mule.api.construct.FlowConstruct flowConstruct) |
org.raml.model.Action |
getEventAction(org.mule.api.MuleEvent event) |
Set<String> |
getFlowActionRefs(org.mule.construct.Flow flow) |
protected abstract FlowResolver |
getFlowResolver(AbstractConfiguration abstractConfiguration,
String key) |
protected abstract HttpRestRequest |
getHttpRestRequest(org.mule.api.MuleEvent muleEvent) |
org.mule.api.MuleContext |
getMuleContext() |
String |
getName() |
String |
getRaml() |
abstract org.raml.parser.loader.ResourceLoader |
getRamlResourceLoader() |
RamlUpdater |
getRamlUpdater() |
Map<String,FlowResolver> |
getRestFlowMap() |
protected abstract org.raml.parser.rule.NodeRuleFactory |
getValidatorNodeRuleFactory() |
void |
initialise() |
protected abstract void |
initializeRestFlowMap() |
protected void |
initializeRestFlowMapWrapper() |
boolean |
isDisableValidations() |
void |
loadApiDefinition(org.mule.api.construct.FlowConstruct flowConstruct) |
void |
publishConsoleUrls(String parentDirectory) |
void |
setDisableValidations(boolean disableValidations) |
void |
setMuleContext(org.mule.api.MuleContext muleContext) |
void |
setName(String name) |
void |
setRaml(String raml) |
void |
updateApi(org.raml.model.Raml newApi) |
protected void |
validateRaml(org.raml.parser.loader.ResourceLoader resourceLoader) |
public static final String APPLICATION_RAML
protected final org.slf4j.Logger logger
protected org.mule.api.construct.FlowConstruct flowConstruct
protected org.mule.api.MuleContext muleContext
protected String raml
protected org.raml.model.Raml api
protected Map<String,FlowResolver> restFlowMapWrapper
protected Map<URIPattern,org.raml.model.Resource> routingTable
protected com.google.common.cache.LoadingCache<String,URIResolver> uriResolverCache
protected com.google.common.cache.LoadingCache<String,URIPattern> uriPatternCache
public void initialise()
throws org.mule.api.lifecycle.InitialisationException
initialise in interface org.mule.api.lifecycle.Initialisableorg.mule.api.lifecycle.InitialisationExceptionpublic void loadApiDefinition(org.mule.api.construct.FlowConstruct flowConstruct)
public void updateApi(org.raml.model.Raml newApi)
protected abstract void initializeRestFlowMap()
protected void validateRaml(org.raml.parser.loader.ResourceLoader resourceLoader)
protected abstract org.raml.parser.rule.NodeRuleFactory getValidatorNodeRuleFactory()
public abstract org.raml.parser.loader.ResourceLoader getRamlResourceLoader()
public String getEndpointAddress(org.mule.api.construct.FlowConstruct flowConstruct)
public String getApikitRaml(String schemeHostPort)
public String getApikitRaml(org.mule.api.MuleEvent event)
public boolean isDisableValidations()
public void setDisableValidations(boolean disableValidations)
public org.raml.model.Raml getApi()
public Map<String,FlowResolver> getRestFlowMap()
public org.mule.api.MuleContext getMuleContext()
public void setMuleContext(org.mule.api.MuleContext muleContext)
setMuleContext in interface org.mule.api.context.MuleContextAwareprotected void initializeRestFlowMapWrapper()
protected abstract FlowResolver getFlowResolver(AbstractConfiguration abstractConfiguration, String key)
public void addConsoleUrl(String url)
public void publishConsoleUrls(String parentDirectory)
public String getName()
public void setName(String name)
public String getRaml()
public void setRaml(String raml)
public org.raml.model.Action getEventAction(org.mule.api.MuleEvent event)
protected abstract HttpRestRequest getHttpRestRequest(org.mule.api.MuleEvent muleEvent)
public static Collection<AbstractConfiguration> getAllConfigurations(org.mule.api.MuleContext muleContext)
public RamlUpdater getRamlUpdater()
Copyright © 2014. All rights reserved.