Class CamelAtlasPropertyStrategy
java.lang.Object
io.atlasmap.core.DefaultAtlasPropertyStrategy
org.apache.camel.component.atlasmap.CamelAtlasPropertyStrategy
- All Implemented Interfaces:
AtlasPropertyStrategy
AtlasMap property strategy to map Camel message headers and exchange properties to/from
AtlasMap properties.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
readProperty
(AtlasSession session, PropertyField propertyField) Read a source property value and set into source Field.void
setCurrentSourceMessage
(org.apache.camel.Message msg) void
setExchange
(org.apache.camel.Exchange ex) void
setSourceMessage
(String documentId, org.apache.camel.Message msg) void
setTargetMessage
(org.apache.camel.Message msg) void
writeProperty
(AtlasSession session, PropertyField propertyField) Write a target property value from target Field.Methods inherited from class io.atlasmap.core.DefaultAtlasPropertyStrategy
getAtlasConversionService, getPropertyOrder, isEnvironmentPropertiesEnabled, isMappingDefinedPropertiesEnabled, isRuntimePropertiesEnabled, isSystemPropertiesEnabled, processEnvironmentVariable, processJavaSystemProperty, processMappingDefinedProperties, processRuntimeProperties, setAtlasConversionService, setEnvironmentPropertiesEnabled, setMappingDefinedPropertiesEnabled, setPropertyOrder, setPropertyOrderValue, setRuntimePropertiesEnabled, setSystemPropertiesEnabled
-
Field Details
-
SCOPE_EXCHANGE_PROPERTY
- See Also:
-
SCOPE_CURRENT_MESSAGE_HEADER
- See Also:
-
-
Constructor Details
-
CamelAtlasPropertyStrategy
public CamelAtlasPropertyStrategy()
-
-
Method Details
-
readProperty
public void readProperty(AtlasSession session, PropertyField propertyField) throws AtlasUnsupportedException, AtlasConversionException Description copied from interface:AtlasPropertyStrategy
Read a source property value and set into source Field.- Specified by:
readProperty
in interfaceAtlasPropertyStrategy
- Overrides:
readProperty
in classDefaultAtlasPropertyStrategy
- Parameters:
session
-AtlasSession
propertyField
- sourcePropertyField
to set a property value- Throws:
AtlasUnsupportedException
- if reading property is not supportedAtlasConversionException
- if type conversion fails
-
writeProperty
Description copied from interface:AtlasPropertyStrategy
Write a target property value from target Field.- Specified by:
writeProperty
in interfaceAtlasPropertyStrategy
- Overrides:
writeProperty
in classDefaultAtlasPropertyStrategy
- Parameters:
session
-AtlasSession
propertyField
- targetPropertyField
to read a property value from
-
setExchange
public void setExchange(org.apache.camel.Exchange ex) -
setSourceMessage
-
setCurrentSourceMessage
public void setCurrentSourceMessage(org.apache.camel.Message msg) -
setTargetMessage
public void setTargetMessage(org.apache.camel.Message msg)
-