@ComponentProfile(summary="Transform a YAML document into JSON", tag="service,transform,json,yaml") public class YamlToJsonService extends ServiceImp
In the adapter configuration file this class is aliased as yaml-to-json which is the preferred alternative to the fully qualified classname when building your configuration.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
YamlToJsonService() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService() |
void |
doService(AdaptrisMessage message) |
DataInputParameter<java.lang.String> |
getSource()
Get the source.
|
DataOutputParameter<java.lang.String> |
getTarget()
Get the target JSON.
|
protected void |
initService() |
void |
prepare() |
void |
setSource(DataInputParameter<java.lang.String> sourceJson)
Set the source JSON.
|
void |
setTarget(DataOutputParameter<java.lang.String> targetJson)
Set the target JSON.
|
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsConfirmation, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isConfirmation, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, rethrowServiceException, retrieveComponentState, setContinueOnFail, setIsConfirmation, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
public void doService(AdaptrisMessage message) throws ServiceException
ServiceException
public void prepare() throws CoreException
CoreException
protected void closeService()
closeService
in class ServiceImp
protected void initService() throws CoreException
initService
in class ServiceImp
CoreException
public DataOutputParameter<java.lang.String> getTarget()
public void setTarget(DataOutputParameter<java.lang.String> targetJson)
targetJson
- The target JSON.public DataInputParameter<java.lang.String> getSource()
public void setSource(DataInputParameter<java.lang.String> sourceJson)
sourceJson
- The source JSON.