Class AtlasEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.impl.DefaultPollingEndpoint
org.apache.camel.impl.ProcessorEndpoint
org.apache.camel.component.ResourceEndpoint
org.apache.camel.component.atlasmap.AtlasEndpoint
- All Implemented Interfaces:
org.apache.camel.api.management.mbean.ManagedResourceEndpointMBean
,org.apache.camel.CamelContextAware
,org.apache.camel.Endpoint
,org.apache.camel.IsSingleton
,org.apache.camel.Service
,org.apache.camel.ShutdownableService
,org.apache.camel.spi.HasId
,org.apache.camel.StatefulService
,org.apache.camel.SuspendableService
@UriEndpoint(firstVersion="2.19.0",
scheme="atlas",
title="AtlasMap",
syntax="atlas:resourceUri",
producerOnly=true,
label="transformation")
public class AtlasEndpoint
extends org.apache.camel.component.ResourceEndpoint
Transforms the message using an AtlasMap transformation.
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.apache.camel.component.ResourceEndpoint
log
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
findOrCreateEndpoint
(String uri, String newResourceUri) org.apache.camel.ExchangePattern
boolean
boolean
protected void
onExchange
(org.apache.camel.Exchange exchange) void
setAtlasContext
(AtlasContext atlasContext) void
setAtlasContextFactory
(AtlasContextFactory atlasContextFactory) void
setEncoding
(String encoding) Character encoding of the resource content.void
setLoaderCache
(boolean loaderCache) Enables / disables the atlas map resource loader cache which is enabled by default.void
setSourceMapName
(String name) The Exchange property name for a source message map which holdjava.util.Map<String, Message>
where the key is AtlasMap Document ID.void
AtlasEndpoint.TargetMapMode
enum value to specify how multiple documents are delivered.void
setTargetMapName
(String name) The Exchange property name for a target document map which holdjava.util.Map<String, Object>
where the key is AtlasMap Document ID.Methods inherited from class org.apache.camel.component.ResourceEndpoint
clearContentCache, getCamelId, getCamelManagementName, getResourceAsInputStream, getResourceAsInputStreamWithoutCache, getResourceUri, getState, isAllowContextMapAll, isContentCache, isContentCacheCleared, loadResource, setAllowContextMapAll, setContentCache, setResourceUri
Methods inherited from class org.apache.camel.impl.ProcessorEndpoint
createPollingConsumer, createProcessor, createProducer, getProcessor, setProcessor
Methods inherited from class org.apache.camel.impl.DefaultPollingEndpoint
createConsumer
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDelay, getInitialDelay, getPollStrategy, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, initConsumerProperties, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelay
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, createEndpointConfiguration, createExchange, createExchange, createExchange, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.camel.Service
start, stop
-
Field Details
-
CONTENT_TYPE_JSON
- See Also:
-
CONTENT_TYPE_XML
- See Also:
-
-
Constructor Details
-
AtlasEndpoint
-
-
Method Details
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.apache.camel.IsSingleton
- Overrides:
isSingleton
in classorg.apache.camel.impl.ProcessorEndpoint
-
getExchangePattern
public org.apache.camel.ExchangePattern getExchangePattern()- Overrides:
getExchangePattern
in classorg.apache.camel.impl.DefaultEndpoint
-
createEndpointUri
- Overrides:
createEndpointUri
in classorg.apache.camel.impl.DefaultEndpoint
-
getAtlasContextFactory
-
setAtlasContextFactory
-
getAtlasContext
-
setAtlasContext
-
isLoaderCache
public boolean isLoaderCache() -
setLoaderCache
public void setLoaderCache(boolean loaderCache) Enables / disables the atlas map resource loader cache which is enabled by default.- Parameters:
loaderCache
- true to enable loader cache
-
setEncoding
Character encoding of the resource content.- Parameters:
encoding
- encoding
-
getEncoding
-
setSourceMapName
The Exchange property name for a source message map which holdjava.util.Map<String, Message>
where the key is AtlasMap Document ID. AtlasMap consumes Message bodies as source documents.- Parameters:
name
- Exchange property name for source map
-
getSourceMapName
-
setTargetMapName
The Exchange property name for a target document map which holdjava.util.Map<String, Object>
where the key is AtlasMap Document ID. AtlasMap populates multiple target documents into this map.- Parameters:
name
- Exchange property name for target map
-
getTargetMapName
-
setTargetMapMode
AtlasEndpoint.TargetMapMode
enum value to specify how multiple documents are delivered.- Parameters:
mode
-AtlasEndpoint.TargetMapMode
-
getTargetMapMode
-
findOrCreateEndpoint
-
onExchange
- Overrides:
onExchange
in classorg.apache.camel.impl.ProcessorEndpoint
- Throws:
Exception
-