Class ParserAdapter
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.ParserAdapter
Adapts a
Parser.- Author:
- Martin Krasser
-
Constructor Summary
ConstructorsConstructorDescriptionParserAdapter(Parser parser) Creates a newParserAdapterand sets the delegateParser. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectdoProcess(InputStream inputData, Object... inputParams) ParsesinputDatausinginputParamsand returns the parsing result.protected ObjectParsesinputDatausinginputParamsand returns the parsing result.protected ObjectParsesinputDatausinginputParamsand returns the parsing result.protected ObjectParsesinputDatausinginputParamsand returns the parsing result.protected voidProcesses input data and populates the output message.Methods inherited from class org.openehealth.ipf.platform.camel.core.adapter.ProcessorAdapter
input, params, process, staticParamsMethods inherited from class org.openehealth.ipf.platform.camel.core.adapter.AdapterSupport
adaptInput, adaptParams, input, params
-
Constructor Details
-
ParserAdapter
Creates a newParserAdapterand sets the delegateParser.- Parameters:
parser- a parser.
-
-
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 specializeddoProcessimplementations.- Specified by:
doProcessin 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
ParsesinputDatausinginputParamsand returns the parsing result. Parsing is delegated to theParserset at construction time.- Parameters:
inputData- input datainputParams- input parameters- Returns:
- parsing result
- Throws:
IOException- if a system-level problem occurs
-
doProcess
ParsesinputDatausinginputParamsand returns the parsing result. Parsing is delegated to theParserset at construction time.- Parameters:
inputData- input datainputParams- input parameters- Returns:
- parsing result
- Throws:
IOException- if a system-level problem occurs
-
doProcess
ParsesinputDatausinginputParamsand returns the parsing result. Parsing is delegated to theParserset at construction time.- Parameters:
inputData- input datainputParams- input parameters- Returns:
- parsing result
- Throws:
IOException- if a system-level problem occurs
-
doProcess
ParsesinputDatausinginputParamsand returns the parsing result. Parsing is delegated to theParserset at construction time.- Parameters:
inputData- input datainputParams- input parameters- Returns:
- parsing result
-