Class ConverterAdapter
java.lang.Object
org.openehealth.ipf.platform.camel.core.adapter.AdapterSupport
org.openehealth.ipf.platform.camel.core.adapter.ProcessorAdapter
org.openehealth.ipf.platform.camel.core.adapter.ConverterAdapter
Adapts a
Converter
.- Author:
- Martin Krasser
-
Constructor Summary
ConstructorDescriptionConverterAdapter
(Converter converter) Creates a newConverterAdapter
and sets the delegateConverter
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doProcess
(InputStream inputData, OutputStream outputData, Object... inputParams) ProcessesinputData
andinputParams
and writes converted result tooutputData
.protected void
ProcessesinputData
andinputParams
and writes converted result tooutputData
.protected String
ProcessesinputData
andinputParams
and returns the converted result.protected void
ProcessesinputData
andinputParams
and writes converted result tooutputData
.protected void
Processes input data and populates the output message.Methods inherited from class org.openehealth.ipf.platform.camel.core.adapter.ProcessorAdapter
input, params, process, staticParams
Methods inherited from class org.openehealth.ipf.platform.camel.core.adapter.AdapterSupport
adaptInput, adaptParams, input, params
-
Constructor Details
-
ConverterAdapter
Creates a newConverterAdapter
and sets the delegateConverter
.- Parameters:
converter
- a converter.
-
-
Method Details
-
doProcess
protected void doProcess(Exchange exchange, Object inputData, Object... inputParams) throws Exception Processes input data and populates the output message. This method delegates message processing to more specializeddoProcess
implementations.- Specified by:
doProcess
in classProcessorAdapter
- Parameters:
exchange
- message exchange where to write processing results.inputData
- input data.inputParams
- input parameters.- Throws:
Exception
- if a processing error occurs.- See Also:
-
doProcess
protected void doProcess(InputStream inputData, OutputStream outputData, Object... inputParams) throws IOException ProcessesinputData
andinputParams
and writes converted result tooutputData
. Conversion is delegated to theConverter
set at construction time.- Parameters:
inputData
- input dataoutputData
- output datainputParams
- input parameters- Throws:
IOException
- if a system-level problem occurs
-
doProcess
protected void doProcess(Reader inputData, Writer outputData, Object... inputParams) throws IOException ProcessesinputData
andinputParams
and writes converted result tooutputData
. Conversion is delegated to theConverter
set at construction time.- Parameters:
inputData
- input dataoutputData
- output datainputParams
- input parameters- Throws:
IOException
- if a system-level problem occurs
-
doProcess
protected void doProcess(Source inputData, Result outputData, Object... inputParams) throws IOException ProcessesinputData
andinputParams
and writes converted result tooutputData
. Conversion is delegated to theConverter
set at construction time.- Parameters:
inputData
- input dataoutputData
- output datainputParams
- input parameters- Throws:
IOException
- if a system-level problem occurs
-
doProcess
ProcessesinputData
andinputParams
and returns the converted result. Conversion is delegated to theConverter
set at construction time.- Parameters:
inputData
- input datainputParams
- input parameters- Returns:
- converted result.
-