public class XmlSourceMapper
extends io.siddhi.core.stream.input.source.SourceMapper
ComplexEventChunk. This extension
accepts optional xpath expressions to select specific attributes from the stream.| Constructor and Description |
|---|
XmlSourceMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowNullInTransportProperties() |
Class[] |
getSupportedInputEventClasses() |
void |
init(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
io.siddhi.core.util.transport.OptionHolder optionHolder,
List<io.siddhi.core.stream.input.source.AttributeMapping> attributeMappingList,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiAppContext siddhiAppContext)
Initialize the mapper and the mapping configurations.
|
protected void |
mapAndProcess(Object eventObject,
io.siddhi.core.stream.input.source.InputEventHandler inputEventHandler)
Receives an event as an XML string from
Source, converts it to
a ComplexEventChunk and send to the
OutputCallback. |
public void init(io.siddhi.query.api.definition.StreamDefinition streamDefinition,
io.siddhi.core.util.transport.OptionHolder optionHolder,
List<io.siddhi.core.stream.input.source.AttributeMapping> attributeMappingList,
io.siddhi.core.util.config.ConfigReader configReader,
io.siddhi.core.config.SiddhiAppContext siddhiAppContext)
init in class io.siddhi.core.stream.input.source.SourceMapperstreamDefinition - the StreamDefinitionoptionHolder - mapping optionsattributeMappingList - list of attributes mappingconfigReader - public Class[] getSupportedInputEventClasses()
getSupportedInputEventClasses in class io.siddhi.core.stream.input.source.SourceMapperprotected void mapAndProcess(Object eventObject, io.siddhi.core.stream.input.source.InputEventHandler inputEventHandler) throws io.siddhi.core.exception.MappingFailedException, InterruptedException
Source, converts it to
a ComplexEventChunk and send to the
OutputCallback.mapAndProcess in class io.siddhi.core.stream.input.source.SourceMappereventObject - the input event, given as an XML stringinputEventHandler - input handlerio.siddhi.core.exception.MappingFailedExceptionInterruptedExceptionprotected boolean allowNullInTransportProperties()
allowNullInTransportProperties in class io.siddhi.core.stream.input.source.SourceMapperCopyright © 2020 WSO2. All rights reserved.