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
ConstructorDescriptionParserAdapter
(Parser parser) Creates a newParserAdapter
and sets the delegateParser
. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
doProcess
(InputStream inputData, Object... inputParams) ParsesinputData
usinginputParams
and returns the parsing result.protected Object
ParsesinputData
usinginputParams
and returns the parsing result.protected Object
ParsesinputData
usinginputParams
and returns the parsing result.protected Object
ParsesinputData
usinginputParams
and returns the parsing result.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
-
ParserAdapter
Creates a newParserAdapter
and 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 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
ParsesinputData
usinginputParams
and returns the parsing result. Parsing is delegated to theParser
set at construction time.- Parameters:
inputData
- input datainputParams
- input parameters- Returns:
- parsing result
- Throws:
IOException
- if a system-level problem occurs
-
doProcess
ParsesinputData
usinginputParams
and returns the parsing result. Parsing is delegated to theParser
set at construction time.- Parameters:
inputData
- input datainputParams
- input parameters- Returns:
- parsing result
- Throws:
IOException
- if a system-level problem occurs
-
doProcess
ParsesinputData
usinginputParams
and returns the parsing result. Parsing is delegated to theParser
set at construction time.- Parameters:
inputData
- input datainputParams
- input parameters- Returns:
- parsing result
- Throws:
IOException
- if a system-level problem occurs
-
doProcess
ParsesinputData
usinginputParams
and returns the parsing result. Parsing is delegated to theParser
set at construction time.- Parameters:
inputData
- input datainputParams
- input parameters- Returns:
- parsing result
-