@UriEndpoint(firstVersion="3.7.0",
scheme="atlasmap",
title="AtlasMap",
syntax="atlasmap:resourceUri",
producerOnly=true,
category=TRANSFORMATION)
public class AtlasMapEndpoint
extends org.apache.camel.component.ResourceEndpoint
| Modifier and Type | Class and Description |
|---|---|
static class |
AtlasMapEndpoint.TargetMapMode |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_TYPE_JSON |
static String |
CONTENT_TYPE_XML |
| Constructor and Description |
|---|
AtlasMapEndpoint(String uri,
AtlasMapComponent component,
String resourceUri) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createEndpointUri() |
AtlasMapEndpoint |
findOrCreateEndpoint(String uri,
String newResourceUri) |
io.atlasmap.api.AtlasContext |
getAtlasContext() |
io.atlasmap.api.AtlasContextFactory |
getAtlasContextFactory() |
org.apache.camel.ExchangePattern |
getExchangePattern() |
String |
getSourceMapName() |
AtlasMapEndpoint.TargetMapMode |
getTargetMapMode() |
String |
getTargetMapName() |
boolean |
isSingleton() |
protected void |
onExchange(org.apache.camel.Exchange exchange) |
void |
setAtlasContext(io.atlasmap.api.AtlasContext atlasContext) |
void |
setAtlasContextFactory(io.atlasmap.api.AtlasContextFactory atlasContextFactory) |
void |
setSourceMapName(String name)
The Exchange property name for a source message map which hold
java.util.Map<String, Message>
where the key is AtlasMap Document ID. |
void |
setTargetMapMode(AtlasMapEndpoint.TargetMapMode mode)
AtlasMapEndpoint.TargetMapMode enum value to specify how multiple target documents are delivered if exist. |
void |
setTargetMapName(String name)
The Exchange property name for a target document map which hold
java.util.Map<String, Object>
where the key is AtlasMap Document ID. |
clearContentCache, getCamelId, getCamelManagementName, getResourceAsInputStream, getResourceAsInputStreamWithoutCache, getResourceUri, getState, isAllowContextMapAll, isContentCache, isContentCacheCleared, loadResource, setAllowContextMapAll, setContentCache, setResourceUricreatePollingConsumer, createProcessor, createProducer, getProcessor, setProcessorconfigureConsumer, configureProperties, configureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigureExchange, configurePollingConsumer, createAsyncProducer, createExchange, createExchange, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final String CONTENT_TYPE_JSON
public static final String CONTENT_TYPE_XML
public AtlasMapEndpoint(String uri, AtlasMapComponent component, String resourceUri)
public boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonisSingleton in class org.apache.camel.support.DefaultEndpointpublic org.apache.camel.ExchangePattern getExchangePattern()
getExchangePattern in interface org.apache.camel.EndpointgetExchangePattern in class org.apache.camel.support.DefaultEndpointprotected String createEndpointUri()
createEndpointUri in class org.apache.camel.support.DefaultEndpointpublic io.atlasmap.api.AtlasContextFactory getAtlasContextFactory()
public void setAtlasContextFactory(io.atlasmap.api.AtlasContextFactory atlasContextFactory)
public io.atlasmap.api.AtlasContext getAtlasContext()
public void setAtlasContext(io.atlasmap.api.AtlasContext atlasContext)
public void setSourceMapName(String name)
java.util.Map<String, Message>
where the key is AtlasMap Document ID. AtlasMap consumes Message bodies as source documents, as well as message
headers as source properties where the scope equals to Document ID.name - Exchange property name for source mappublic String getSourceMapName()
public void setTargetMapName(String name)
java.util.Map<String, Object>
where the key is AtlasMap Document ID. AtlasMap populates multiple target documents into this map.name - Exchange property name for target mappublic String getTargetMapName()
public void setTargetMapMode(AtlasMapEndpoint.TargetMapMode mode)
AtlasMapEndpoint.TargetMapMode enum value to specify how multiple target documents are delivered if exist.
mode - AtlasMapEndpoint.TargetMapModepublic AtlasMapEndpoint.TargetMapMode getTargetMapMode()
public AtlasMapEndpoint findOrCreateEndpoint(String uri, String newResourceUri)
Apache Camel