Java Code Examples for org.apache.synapse.config.SynapseConfiguration#getAPI()
The following examples show how to use
org.apache.synapse.config.SynapseConfiguration#getAPI() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ApiResource.java From micro-integrator with Apache License 2.0 | 4 votes |
private JSONObject getApiByName(MessageContext messageContext, String apiName) { SynapseConfiguration configuration = messageContext.getConfiguration(); API api = configuration.getAPI(apiName); return convertApiToJsonObject(api, messageContext); }
Example 2
Source File: APIStore.java From micro-integrator with Apache License 2.0 | 4 votes |
protected API getObjectToPersist(String name, SynapseConfiguration config) { return config.getAPI(name); }