@ComponentProfile(summary="Gets the root element of Xml via STaX and sets it as metadata", tag="service,xml") public class StaxGetRootElementService extends ServiceImp
In the adapter configuration file this class is aliased as stax-get-root-element which is the preferred alternative to the fully qualified classname when building your configuration.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
StaxGetRootElementService() |
Modifier and Type | Method and Description |
---|---|
protected int |
bufferSize() |
protected void |
closeService() |
void |
doService(AdaptrisMessage msg) |
java.lang.Integer |
getBufferSize() |
XmlInputFactoryBuilder |
getInputFactoryBuilder() |
java.lang.String |
getMetadataKey() |
protected void |
initService() |
void |
prepare() |
void |
setBufferSize(java.lang.Integer b)
Set the internal buffer size.
|
void |
setInputFactoryBuilder(XmlInputFactoryBuilder inputFactoryBuilder) |
void |
setMetadataKey(java.lang.String metadataKey) |
StaxGetRootElementService |
withInputFactoryBuilder(XmlInputFactoryBuilder b) |
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 void prepare() throws CoreException
CoreException
protected void initService() throws CoreException
initService
in class ServiceImp
CoreException
protected void closeService()
closeService
in class ServiceImp
public java.lang.Integer getBufferSize()
public void setBufferSize(java.lang.Integer b)
This is used when; the default buffer size matches the default buffer size in BufferedReader
and BufferedWriter
, changes to the buffersize will impact performance and memory usage depending on the underlying operating system/disk.
b
- the buffer size (default is 8192).protected int bufferSize()
public java.lang.String getMetadataKey()
public void setMetadataKey(java.lang.String metadataKey)
public XmlInputFactoryBuilder getInputFactoryBuilder()
public void setInputFactoryBuilder(XmlInputFactoryBuilder inputFactoryBuilder)
public StaxGetRootElementService withInputFactoryBuilder(XmlInputFactoryBuilder b)