Package com.adaptris.stax.lms
Class StaxWriteElement
java.lang.Object
com.adaptris.core.ServiceImp
com.adaptris.stax.lms.StaxXmlOutput
com.adaptris.stax.lms.StaxWriteElement
- All Implemented Interfaces:
AdaptrisComponent,ComponentLifecycle,ComponentLifecycleExtension,ConfigComment,MessageEventGenerator,Service,StateManagedComponent
@ComponentProfile(summary="Write the current message as XML output via STaX",
tag="service,transform,xml",
since="3.6.6")
public class StaxWriteElement
extends StaxXmlOutput
Write the contents of the current message to the output created by
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/>
- See Also:
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.
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoService(AdaptrisMessage msg) protected static voidreleaseLock(com.adaptris.stax.lms.StaxOutputWrapper w) voidsetInputFactoryBuilder(XmlInputFactoryBuilder inputFactoryBuilder) Methods inherited from class com.adaptris.stax.lms.StaxXmlOutput
closeQuietly, closeService, initService, messageFactory, prepare, unwrapMethods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, enabled, getComments, getContinueOnFail, getEnabled, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setComments, setContinueOnFail, setEnabled, setIsTrackingEndpoint, setUniqueId, start, stop
-
Constructor Details
-
StaxWriteElement
public StaxWriteElement()
-
-
Method Details
-
doService
- Throws:
ServiceException
-
getInputFactoryBuilder
-
setInputFactoryBuilder
-
withInputFactoryBuilder
-
releaseLock
protected static void releaseLock(com.adaptris.stax.lms.StaxOutputWrapper w)
-