Package com.proagrica.bip.services
Class JsonArrayValuePairsToMetadata
java.lang.Object
com.adaptris.core.ServiceImp
com.proagrica.bip.services.AbstractJsonPathSource
com.proagrica.bip.services.JsonArrayValuePairsToMetadata
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,ConfigComment
,MessageEventGenerator
,Service
,StateManagedComponent
@ComponentProfile(summary="For each Json array element, containing a name/value pair, insert them into metadata.",
tag="service,bip,json")
public class JsonArrayValuePairsToMetadata
extends AbstractJsonPathSource
For each array element we are expecting a name value pair for each. These will simply be added to metadata as key and value.
In the adapter configuration file this class is aliased as for-each-json-array-name-value which is the preferred alternative to the fully qualified classname when building your configuration.
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceImp
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
doService
(AdaptrisMessage message) protected void
void
setJsonPath
(String jsonPath) void
setJsonSource
(String jsonSource) Methods inherited from class com.proagrica.bip.services.AbstractJsonPathSource
doJsonPath, prepare
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getComments, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setComments, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
Constructor Details
-
JsonArrayValuePairsToMetadata
public JsonArrayValuePairsToMetadata()
-
-
Method Details
-
doService
- Throws:
ServiceException
-
initService
- Specified by:
initService
in classServiceImp
- Throws:
CoreException
-
closeService
protected void closeService()- Specified by:
closeService
in classServiceImp
-
getJsonPath
-
setJsonPath
-
getJsonSource
-
setJsonSource
-