Package com.adaptris.stax.services
Class StaxTransformPlugin
java.lang.Object
com.adaptris.stax.services.StaxTransformPlugin
- All Implemented Interfaces:
ComponentLifecycle,Plugin
@ComponentProfile(summary="transform-plugin implementation for TransformPluginServiceList",
since="3.8.4")
public class StaxTransformPlugin
extends Object
implements Plugin
Plugin implementation that uses STaX to transform between 2 formats.In the adapter configuration file this class is aliased as stax-transform-plugin which is the preferred alternative to the fully qualified classname when building your configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidinit()voidSet theXmlInputFactoryBuilderto use when streaming the input.voidSet the input rule that fires this plugin.voidSet theXmlOutputFactoryBuilderto use when streaming the output.voidSet what changes about the message when this plugin is applied.voidstart()voidstop()transform(AdaptrisMessage msg)
-
Constructor Details
-
StaxTransformPlugin
public StaxTransformPlugin()
-
-
Method Details
-
init
- Specified by:
initin interfaceComponentLifecycle- Throws:
CoreException
-
start
- Specified by:
startin interfaceComponentLifecycle- Throws:
CoreException
-
stop
public void stop()- Specified by:
stopin interfaceComponentLifecycle
-
close
public void close()- Specified by:
closein interfaceComponentLifecycle
-
transform
- Specified by:
transformin interfacePlugin- Throws:
ServiceException
-
getInputBuilder
-
setInputBuilder
Set theXmlInputFactoryBuilderto use when streaming the input.- Parameters:
fac- the input factory.
-
withInputBuilder
-
getOutputBuilder
-
setOutputBuilder
Set theXmlOutputFactoryBuilderto use when streaming the output.- Parameters:
fac- the output factory.
-
withOutputBuilder
-
getInputCondition
-
setInputCondition
Set the input rule that fires this plugin.- Parameters:
r- thInputConditionimplementation; by default it will never match.
-
withInputCondition
- See Also:
-
getPostTransform
-
setPostTransform
Set what changes about the message when this plugin is applied.- Parameters:
r- thePostTransformimplementation, by default nothing is done.
-
withPostTransform
- See Also:
-