public abstract class CsvXmlTransformImpl extends ServiceImp
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CSV_FIELD_NAME |
protected static java.lang.String |
CSV_RECORD_NAME |
protected static java.lang.String |
XML_ROOT_ELEMENT |
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
CsvXmlTransformImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService() |
protected java.lang.String |
evaluateEncoding(AdaptrisMessage msg) |
java.lang.Boolean |
getIncludeLineNumberAttribute() |
java.lang.String |
getOutputMessageEncoding() |
protected boolean |
includeLineNumberAttribute() |
protected void |
initService() |
void |
prepare() |
void |
setIncludeLineNumberAttribute(java.lang.Boolean b)
Specify whether or not to include the line number as an attribute on each record.
|
void |
setOutputMessageEncoding(java.lang.String encoding)
Set the encoding for the resulting XML document.
|
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsConfirmation, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isConfirmation, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, rethrowServiceException, retrieveComponentState, setContinueOnFail, setIsConfirmation, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
protected static final java.lang.String CSV_RECORD_NAME
protected static final java.lang.String XML_ROOT_ELEMENT
protected static final java.lang.String CSV_FIELD_NAME
protected void initService() throws CoreException
initService
in class ServiceImp
CoreException
protected void closeService()
closeService
in class ServiceImp
public void prepare() throws CoreException
CoreException
public java.lang.String getOutputMessageEncoding()
public void setOutputMessageEncoding(java.lang.String encoding)
If not specified the following rules will be applied:
AdaptrisMessage.getCharEncoding()
is non-null then that will be used.
As a result; the character encoding on the message is always set using AdaptrisMessage.setCharEncoding(String)
.
encoding
- the characterprotected java.lang.String evaluateEncoding(AdaptrisMessage msg)
public java.lang.Boolean getIncludeLineNumberAttribute()
public void setIncludeLineNumberAttribute(java.lang.Boolean b)
b
- whether to include the line number attribute default null (false)protected boolean includeLineNumberAttribute()