public abstract class AbstractConfiguration extends Object implements org.mule.api.lifecycle.Initialisable, org.mule.api.context.MuleContextAware, org.mule.api.lifecycle.Startable
| Modifier and Type | Field and Description |
|---|---|
protected org.mule.raml.interfaces.model.IRaml |
api |
static String |
APPLICATION_RAML |
protected boolean |
extensionEnabled |
protected org.mule.api.construct.FlowConstruct |
flowConstruct |
protected Boolean |
keepRamlBaseUri |
protected org.slf4j.Logger |
logger |
static String |
MULE_EXPAND_ENTITIES_PROPERTY |
static String |
MULE_EXTERNAL_ENTITIES_PROPERTY |
protected org.mule.api.MuleContext |
muleContext |
protected String |
raml |
static String |
RAML_EXPAND_ENTITIES_PROPERTY |
static String |
RAML_EXTERNAL_ENTITIES_PROPERTY |
protected Map<String,FlowResolver> |
restFlowMapWrapper |
protected Map<URIPattern,org.mule.raml.interfaces.model.IResource> |
routingTable |
static String |
STRICT_DATES_RFC3339 |
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.mule.raml.interfaces.model.IRaml |
getApi() |
String |
getApikitRaml(org.mule.api.MuleEvent event) |
String |
getApikitRaml(String schemeHostPort)
Returns the RAML descriptor of the API.
|
String |
getApikitRamlConsole(org.mule.api.MuleEvent event)
returns the raml descriptor using the host from the console request event
only when the bind to all interfaces ip (0.0.0.0) is used for the router endpoint.
|
String |
getAppHome() |
String |
getEndpointAddress(org.mule.api.construct.FlowConstruct flowConstruct) |
org.mule.raml.interfaces.model.IAction |
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() |
org.mule.api.construct.FlowConstruct |
getParentFlow(org.mule.api.MuleEvent event) |
String |
getRaml() |
RamlUpdater |
getRamlUpdater() |
Map<String,FlowResolver> |
getRestFlowMap() |
org.mule.module.apikit.spi.RouterService |
getRouterExtension() |
void |
initialise() |
protected abstract void |
initializeRestFlowMap() |
protected void |
initializeRestFlowMapWrapper() |
boolean |
isDisableValidations() |
boolean |
isExtensionEnabled() |
boolean |
isParserV2() |
void |
loadApiDefinition(org.mule.api.construct.FlowConstruct flowConstruct) |
protected Map<String,FlowResolver> |
populateFlowMapWrapper() |
void |
publishConsoleUrls(String parentDirectory) |
void |
setDisableValidations(boolean disableValidations) |
void |
setExtensionEnabled(boolean extensionEnabled) |
void |
setKeepRamlBaseUri(boolean keepRamlBaseUri) |
void |
setMuleContext(org.mule.api.MuleContext muleContext) |
void |
setName(String name) |
void |
setRaml(String raml) |
void |
start() |
void |
updateApi(org.mule.raml.interfaces.model.IRaml newApi) |
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.mule.raml.interfaces.model.IRaml api
protected Boolean keepRamlBaseUri
protected Map<String,FlowResolver> restFlowMapWrapper
protected Map<URIPattern,org.mule.raml.interfaces.model.IResource> routingTable
protected com.google.common.cache.LoadingCache<String,URIResolver> uriResolverCache
protected com.google.common.cache.LoadingCache<String,URIPattern> uriPatternCache
protected boolean extensionEnabled
public static final String RAML_EXTERNAL_ENTITIES_PROPERTY
public static final String RAML_EXPAND_ENTITIES_PROPERTY
public static final String MULE_EXTERNAL_ENTITIES_PROPERTY
public static final String MULE_EXPAND_ENTITIES_PROPERTY
public static final String STRICT_DATES_RFC3339
public void initialise()
throws org.mule.api.lifecycle.InitialisationException
initialise in interface org.mule.api.lifecycle.Initialisableorg.mule.api.lifecycle.InitialisationExceptionpublic boolean isParserV2()
public String getAppHome()
public void start()
throws org.mule.api.MuleException
start in interface org.mule.api.lifecycle.Startableorg.mule.api.MuleExceptionpublic void loadApiDefinition(org.mule.api.construct.FlowConstruct flowConstruct)
public void updateApi(org.mule.raml.interfaces.model.IRaml newApi)
protected abstract void initializeRestFlowMap()
public String getEndpointAddress(org.mule.api.construct.FlowConstruct flowConstruct)
public String getApikitRaml(String schemeHostPort)
public String getApikitRaml(org.mule.api.MuleEvent event)
public String getApikitRamlConsole(org.mule.api.MuleEvent event)
public boolean isDisableValidations()
public void setDisableValidations(boolean disableValidations)
public void setKeepRamlBaseUri(boolean keepRamlBaseUri)
public org.mule.raml.interfaces.model.IRaml 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 Map<String,FlowResolver> populateFlowMapWrapper()
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.mule.raml.interfaces.model.IAction 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()
public org.mule.api.construct.FlowConstruct getParentFlow(org.mule.api.MuleEvent event)
public boolean isExtensionEnabled()
public void setExtensionEnabled(boolean extensionEnabled)
public org.mule.module.apikit.spi.RouterService getRouterExtension()
Copyright © 2021. All rights reserved.