Package com.adaptris.core.transform
Class MultiPayloadXmlTransformService
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.core.transform.XmlTransformService
-
- com.adaptris.core.transform.MultiPayloadXmlTransformService
-
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,MessageEventGenerator
,Service
,StateManagedComponent
@ComponentProfile(summary="Execute an XSLT transform", tag="service,transform,xml,multi,payload,multi-payload") public class MultiPayloadXmlTransformService extends XmlTransformService
Implementation ofService
which provides transformation of XML payloads contained within the new multi-payload message. You are required to configure the XML transformer factory; see the javadoc and implementations ofXmlTransformerFactory
for details on the supported transformer factories. Configuration including allow over-ride behaviour matches previous implementation.In the adapter configuration file this class is aliased as new-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
Constructors Constructor Description MultiPayloadXmlTransformService()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doService(AdaptrisMessage msg)
Apply the service to the message.java.lang.String
getOutputPayloadId()
java.lang.String
getSourcePayloadId()
void
setOutputPayloadId(java.lang.String outputPayloadId)
void
setSourcePayloadId(java.lang.String sourcePayloadId)
-
Methods inherited from class com.adaptris.core.transform.XmlTransformService
cacheAndGetTransformer, closeService, getAllowOverride, getCacheTransforms, getMetadataKey, getOutputMessageEncoding, getParameterBuilder, getTransformParameter, getUrl, getXmlTransformerFactory, initService, prepare, setAllowOverride, setCacheTransforms, setMetadataKey, setOutputMessageEncoding, setTransformParameter, setUrl, setXmlTransformerFactory
-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
-
-
-
Method Detail
-
doService
public void doService(AdaptrisMessage msg) throws ServiceException
Description copied from interface:Service
Apply the service to the message.
- Specified by:
doService
in interfaceService
- Overrides:
doService
in classXmlTransformService
- Parameters:
msg
- theAdaptrisMessage
to process- Throws:
ServiceException
- wrapping any underlyingException
s- See Also:
(com.adaptris.core.AdaptrisMessage)
-
getSourcePayloadId
public java.lang.String getSourcePayloadId()
-
setSourcePayloadId
public void setSourcePayloadId(java.lang.String sourcePayloadId)
-
getOutputPayloadId
public java.lang.String getOutputPayloadId()
-
setOutputPayloadId
public void setOutputPayloadId(java.lang.String outputPayloadId)
-
-