Package com.adaptris.core.transform.json
Class JsonXmlTransformService
java.lang.Object
com.adaptris.core.ServiceImp
com.adaptris.core.transform.json.JsonXmlTransformService
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,ConfigComment
,MessageEventGenerator
,Service
,StateManagedComponent
@ComponentProfile(summary="Transform a JSON document to XML, or vice versa",
tag="service,transform,json,xml")
public class JsonXmlTransformService
extends ServiceImp
XML to JSON converter and vice versa.
In the adapter configuration file this class is aliased as json-xml-transform-service 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
ConstructorDescriptionJsonXmlTransformService
(TransformationDirection direction) JsonXmlTransformService
(TransformationDirection direction, TransformationDriver driver) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
doService
(AdaptrisMessage msg) .Get the transformation direction.Get the transformation driver.protected void
void
prepare()
void
setDirection
(TransformationDirection direction) Set the transformation direction.void
setDriver
(TransformationDriver driver) Set the transformation driver.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
-
JsonXmlTransformService
public JsonXmlTransformService() -
JsonXmlTransformService
-
JsonXmlTransformService
-
-
Method Details
-
doService
.- Throws:
ServiceException
-
prepare
- Throws:
CoreException
-
closeService
protected void closeService()- Specified by:
closeService
in classServiceImp
-
initService
- Specified by:
initService
in classServiceImp
- Throws:
CoreException
-
getDirection
Get the transformation direction.- Returns:
- The transformation direction.
-
setDirection
Set the transformation direction.- Parameters:
direction
- The transformation direction.
-
withDirection
-
getDriver
Get the transformation driver.- Returns:
- The transformation driver.
-
setDriver
Set the transformation driver.- Parameters:
driver
- The transformation driver.
-
withDriver
-