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
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.camel.component.ResourceEndpoint
logFields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringfindOrCreateEndpoint(String uri, String newResourceUri) org.apache.camel.ExchangePatternbooleanbooleanprotected voidonExchange(org.apache.camel.Exchange exchange) voidsetAtlasContext(AtlasContext atlasContext) voidsetAtlasContextFactory(AtlasContextFactory atlasContextFactory) voidsetEncoding(String encoding) Character encoding of the resource content.voidsetLoaderCache(boolean loaderCache) Enables / disables the atlas map resource loader cache which is enabled by default.voidsetSourceMapName(String name) The Exchange property name for a source message map which holdjava.util.Map<String, Message>where the key is AtlasMap Document ID.voidAtlasEndpoint.TargetMapModeenum value to specify how multiple documents are delivered.voidsetTargetMapName(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, setResourceUriMethods inherited from class org.apache.camel.impl.ProcessorEndpoint
createPollingConsumer, createProcessor, createProducer, getProcessor, setProcessorMethods inherited from class org.apache.camel.impl.DefaultPollingEndpoint
createConsumerMethods 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, setUseFixedDelayMethods 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, toStringMethods 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, suspendMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
isSingletonin interfaceorg.apache.camel.IsSingleton- Overrides:
isSingletonin classorg.apache.camel.impl.ProcessorEndpoint
-
getExchangePattern
public org.apache.camel.ExchangePattern getExchangePattern()- Overrides:
getExchangePatternin classorg.apache.camel.impl.DefaultEndpoint
-
createEndpointUri
- Overrides:
createEndpointUriin 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.TargetMapModeenum value to specify how multiple documents are delivered.- Parameters:
mode-AtlasEndpoint.TargetMapMode
-
getTargetMapMode
-
findOrCreateEndpoint
-
onExchange
- Overrides:
onExchangein classorg.apache.camel.impl.ProcessorEndpoint- Throws:
Exception
-