If you write a custom data handler that uses data-handler meta-objects, you must:
The child meta-object contains the configuration information for the data handler. The createHandler() method uses this information to initialize the newly instantiated data handler. For more detailed information on this process, see Using a MIME type.
To create a child meta-object for a custom data handler:
You can use the Business Object Designer tool to create this child meta-object. The meta-object must contain attributes to define the configuration information that your data handler requires. At a minimum, the child meta-object must have a ClassName attribute.
com.crossworlds.DataHandlers.MimeTypeString
However, you can specify the class name for the data handler in the ClassName attribute's default value.
When a caller supplies a MIME type to the createHandler() method, createHandler() determines which data handler to instantiate with these steps:
For a more detailed explanation of this process, see Using a MIME type. For this process to be successful, createHandler() must be able to locate the MIME type associated with data. Therefore, you must edit the top-level data-handler meta-object to include an attribute for the MIME type of the data that your data handler converts. This attribute must include:
The name of the MIME type can contain only alphanumeric characters and the underscore (_). No other special characters are valid. If your MIME type contains a period (.), replace it with an underscore.
As an example, Figure 43 shows a top-level connector meta-object that is configured for a custom HTML data handler.
Figure 43. Example top-level connector meta-object for a custom data handler
In Figure 43, the default top-level meta-object for a connector (MO_DataHandler_Default) has been modified to support a new MIME type: HTML. In support of this MIME type, the MO_DataHandler_Default meta-object contains the following attribute properties:
Attribute Name = text_html Attribute Type = MO_DataHandler_HTMLConfig
Once you have created the data-handler meta-objects, you must set up these meta-objects in the WebSphere business integration system, as follows: