Class JsonPathSplitter
java.lang.Object
com.adaptris.core.services.splitter.MessageSplitterImp
com.adaptris.core.services.splitter.json.JsonPathSplitter
- All Implemented Interfaces:
MessageSplitter
@ComponentProfile(summary="Split a JSON Array specified by a JSON path into indvidual JSON objects",
tag="json,splitting")
public class JsonPathSplitter
extends MessageSplitterImp
JSON path splitter.
In the adapter configuration file this class is aliased as json-path-splitter which is the preferred alternative to the fully qualified classname when building your configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.adaptris.core.services.splitter.MessageSplitterImp
MessageSplitterImp.SplitMessageIterator
-
Field Summary
Fields inherited from class com.adaptris.core.services.splitter.MessageSplitterImp
logR
-
Constructor Summary
ConstructorDescriptionJsonPathSplitter
(DataInputParameter<String> source, DataInputParameter<String> path) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
execute
(Service s, AdaptrisMessage msg) Get the JSON path.Get the JSON source.Get the message splitter.void
setJsonPath
(DataInputParameter<String> jsonPath) Set the JSON path.void
setJsonSource
(DataInputParameter<String> jsonSource) Set the JSON source.void
setMessageSplitter
(MessageSplitter messageSplitter) Set the message splitter.splitMessage
(AdaptrisMessage message) Split JSON path.Methods inherited from class com.adaptris.core.services.splitter.MessageSplitterImp
copyMetadata, getCopyMetadata, getCopyObjectMetadata, getMessageFactory, selectFactory, setCopyMetadata, setCopyObjectMetadata, setMessageFactory
-
Constructor Details
-
JsonPathSplitter
public JsonPathSplitter() -
JsonPathSplitter
-
-
Method Details
-
splitMessage
Split JSON path. .- Parameters:
message
- The Adaptris message with the JSON payload.- Throws:
CoreException
-
execute
- Throws:
CoreException
-
getJsonSource
Get the JSON source.- Returns:
- The JSON source.
-
setJsonSource
Set the JSON source.- Parameters:
jsonSource
- The JSON source.
-
getJsonPath
Get the JSON path.- Returns:
- The JSON path.
-
setJsonPath
Set the JSON path.- Parameters:
jsonPath
- The JSON path.
-
getMessageSplitter
Get the message splitter.- Returns:
- The message splitter.
-
setMessageSplitter
Set the message splitter.- Parameters:
messageSplitter
- The message splitter.
-