public class DataFormatTransformer extends Transformer
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending| Constructor and Description |
|---|
DataFormatTransformer(CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
doStart()
Implementations override this method to support customized start/stop.
|
void |
doStop()
Implementations override this method to support customized start/stop.
|
DataFormatTransformer |
setDataFormatRef(String ref)
Set DataFormat ref.
|
DataFormatTransformer |
setDataFormatType(DataFormatDefinition dataFormatType)
Set DataFormatDefinition.
|
String |
toString() |
void |
transform(Message message,
DataType from,
DataType to)
Perform data transformation with specified from/to type using DataFormat.
|
getCamelContext, getFrom, getModel, getTo, setCamelContext, setFrom, setModel, setTodoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic DataFormatTransformer(CamelContext context)
public void transform(Message message, DataType from, DataType to) throws Exception
transform in class Transformermessage - message to apply transformationfrom - 'from' data typeto - 'to' data typeExceptionpublic DataFormatTransformer setDataFormatRef(String ref)
ref - DataFormat refpublic DataFormatTransformer setDataFormatType(DataFormatDefinition dataFormatType)
dataFormatType - DataFormatDefinitionpublic String toString()
toString in class Transformerpublic void doStart() throws Exception
ServiceSupportServiceSupport.doStop() for more details.doStart in class TransformerExceptionServiceSupport.doStop()public void doStop() throws Exception
ServiceSupportServiceSupport.doStop() method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext is shutting down.doStop in class TransformerExceptionServiceSupport.doStart()Apache Camel