@ComponentProfile(summary="Write the current message as XML output via STaX", tag="service,transform,xml", since="3.6.6") public class StaxWriteElement extends StaxXmlOutput
StaxStartDocument
.
For this service to work, the underlying AdaptrisMessageFactory
associated with the AdaptrisMessage
instance must
be a FileBackedMessageFactory
and StaxStartDocument
must have precede this service and subsequent processing must
include StaxEndDocument
to commit the output; so effectively your processing chain should be
<stax-xml-start-document/>
... 0 or more instances of <stax-xml-write-element/>
<stax-xml-end-document/>
StaxStartDocument
,
StaxEndDocument
In the adapter configuration file this class is aliased as stax-xml-write-element which is the preferred alternative to the fully qualified classname when building your configuration.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
StaxWriteElement() |
Modifier and Type | Method and Description |
---|---|
void |
doService(AdaptrisMessage msg) |
XmlInputFactoryBuilder |
getInputFactoryBuilder() |
protected static void |
releaseLock(com.adaptris.stax.lms.StaxOutputWrapper w) |
void |
setInputFactoryBuilder(XmlInputFactoryBuilder inputFactoryBuilder) |
StaxWriteElement |
withInputFactoryBuilder(XmlInputFactoryBuilder b) |
closeQuietly, closeService, initService, messageFactory, prepare, unwrap
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
public void doService(AdaptrisMessage msg) throws ServiceException
ServiceException
public XmlInputFactoryBuilder getInputFactoryBuilder()
public void setInputFactoryBuilder(XmlInputFactoryBuilder inputFactoryBuilder)
public StaxWriteElement withInputFactoryBuilder(XmlInputFactoryBuilder b)
protected static void releaseLock(com.adaptris.stax.lms.StaxOutputWrapper w)