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 XmlTransformServiceImplementation ofServicewhich 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 ofXmlTransformerFactoryfor 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 voiddoService(AdaptrisMessage msg)Apply the service to the message.java.lang.StringgetOutputPayloadId()java.lang.StringgetSourcePayloadId()voidsetOutputPayloadId(java.lang.String outputPayloadId)voidsetSourcePayloadId(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:ServiceApply the service to the message.
- Specified by:
doServicein interfaceService- Overrides:
doServicein classXmlTransformService- Parameters:
msg- theAdaptrisMessageto process- Throws:
ServiceException- wrapping any underlyingExceptions- 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)
-
-