public class CamelPlugin extends JavaPlugin implements org.apache.camel.CamelContextAware
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
static String |
PRODUCER_TEMPLATE |
| Constructor and Description |
|---|
CamelPlugin() |
CamelPlugin(org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(CamelConsumer consumer) |
org.apache.camel.CamelContext |
getCamelContext() |
List<CamelConsumer> |
getConsumers() |
org.apache.camel.CamelContext |
getContext() |
org.apache.camel.ProducerTemplate |
getProducerTemplate() |
String |
getRouteId(org.apache.camel.Exchange exchange) |
SpongeCamelEvent |
makeInputEvent(String name,
org.apache.camel.Exchange exchange) |
void |
onShutdown() |
boolean |
removeConsumer(CamelConsumer consumer) |
Object |
request(String uri,
Object body) |
void |
send(Object body) |
void |
send(String uri,
Object body) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setContext(org.apache.camel.CamelContext camelContext) |
doShutdown, doStartup, getConfiguration, getEngineOperations, getEps, getKnowledgeBase, getLogger, onAfterReload, onBeforeReload, onConfigure, onInit, onStartup, setConfiguration, setKnowledgeBase, toStringgetEngine, getName, getService, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setEngine, setName, shutdown, startupclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final String NAME
public static final String PRODUCER_TEMPLATE
public CamelPlugin(org.apache.camel.CamelContext camelContext)
public CamelPlugin()
public org.apache.camel.CamelContext getContext()
public void setContext(org.apache.camel.CamelContext camelContext)
public List<CamelConsumer> getConsumers()
public void addConsumer(CamelConsumer consumer)
public boolean removeConsumer(CamelConsumer consumer)
public SpongeCamelEvent makeInputEvent(String name, org.apache.camel.Exchange exchange)
public void send(Object body)
public org.apache.camel.ProducerTemplate getProducerTemplate()
public String getRouteId(org.apache.camel.Exchange exchange)
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void onShutdown()
onShutdown in interface org.openksavi.sponge.plugin.PluginonShutdown in class BasePluginCopyright © 2016–2017 Softelnet. All rights reserved.