Information Management IBM InfoSphere Master Data Management, Version 10.1

Understanding parser components

The parser is responsible for parsing the request and constructing business objects that contain the data sent in the request. These business objects are returned back to the request handler for subsequent business processing through the business proxy layer.

The Request and Response Framework allows callers to select the parser for every incoming request. Multiple parsers can be configured in the same deployment. The framework comes packaged with multiple parsers to handle different request formats, including the InfoSphere® MDM Server default XML request format and the composite XML parser.

You can build your own parsers to handle a specific request format. A parser must implement the com.dwl.base.requestHandler.interfaces.IRequestParser interface. You must configure the new parser in the DWLCommon_extension.properties file to make it available to the Request and Response Framework. Refer to the Javadoc for more information on the interface and the methods that should be implemented.

The parser implementation class is created using a factory class. This factory class is also pluggable. A default parser factory class, com.dwl.base.requestHandler.RequestParserFactory is provided to create the parser based on the Parser value in the incoming context parameter. You may decide to create a new parser factory implantation and configuring it in the DWLCommon_extension.properties file. The new class must implement the com.dwl.base.requestHandler.interfaces.IRequestParserFactory interface. See the Javadoc for more information on this interface. The selection for the parser factory is accomplished by using the RequestType parameter passed into the context.



Feedback

Timestamp Last updated: 18 Jul 2013

Topic URL: