com.ibm.di.connector.disb
Class DISBIDMLMessageTransformer

java.lang.Object
  extended by com.ibm.di.connector.disb.DISBIDMLMessageTransformer

public class DISBIDMLMessageTransformer
extends Object

This class is used to transform the IDML to JSON Messages.

Note: This class is for internal usage only. Any dependency from the end-user will not be supported. Changes to this class will happen without a warning.

Since:
7.1.1

Constructor Summary
DISBIDMLMessageTransformer()
           
 
Method Summary
protected  void constructCiAndRelationshipJson(com.ibm.json.java.OrderedJSONObject operJsonObj, com.ibm.json.java.OrderedJSONObject newOperJsonObj)
          Method populates a new OrderedJSONObject with the CI and Relationships as required by the DIS Subscription Queue.
 String getjSONMessage()
           
 Map<String,Object> getMsgProperties()
           
protected  String parseJSONMessage(com.ibm.json.java.OrderedJSONObject opSetObject)
          Method returns a String containing the JSON message as required by the DIS Subscription Queue.
protected  Map<String,Object> parseProperties(com.ibm.json.java.OrderedJSONObject sourceObject)
          Method returns a map containing the JMS properties as required by the DIS Subscription Queue.
 void transformIDML(InputStream idmlInpStrm)
          Method transforms the IDML input stream to JSON data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DISBIDMLMessageTransformer

public DISBIDMLMessageTransformer()
Method Detail

transformIDML

public void transformIDML(InputStream idmlInpStrm)
                   throws Exception
Method transforms the IDML input stream to JSON data.

Parameters:
data - The InputStream containing the IDML Message.
Throws:
Exception - if a problem occurs.

parseProperties

protected Map<String,Object> parseProperties(com.ibm.json.java.OrderedJSONObject sourceObject)
                                      throws Exception
Method returns a map containing the JMS properties as required by the DIS Subscription Queue.

Parameters:
sourceObject - The OrderedJSON object containing the IDML Message Properties.
Returns:
a Map object containing the parsed JMS properties as required by the DIS Subscription Queue.
Throws:
Exception - if a problem occurs.

parseJSONMessage

protected String parseJSONMessage(com.ibm.json.java.OrderedJSONObject opSetObject)
                           throws Exception
Method returns a String containing the JSON message as required by the DIS Subscription Queue.

Parameters:
OrderedJSONObject - The object containing the containing DIS Operation Set.
Throws:
Exception - if a problem occurs.

constructCiAndRelationshipJson

protected void constructCiAndRelationshipJson(com.ibm.json.java.OrderedJSONObject operJsonObj,
                                              com.ibm.json.java.OrderedJSONObject newOperJsonObj)
                                       throws Exception
Method populates a new OrderedJSONObject with the CI and Relationships as required by the DIS Subscription Queue.

Parameters:
operJsonObj - The OrderedJSONObject object containing the JSON Message from IDML.
newOperJsonObj - The new OrderedJSONObject that needs to be populated with the JSON message as required by the DIS Subscription Queue.
Throws:
Exception - if a problem occurs.

getjSONMessage

public String getjSONMessage()
Returns:
the jSONMessage

getMsgProperties

public Map<String,Object> getMsgProperties()
Returns:
the msgProperties