|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.connector.disb.DISBJSONMessageTransformer
public class DISBJSONMessageTransformer
This class is used to parse and transform the 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.
Constructor Summary | |
---|---|
DISBJSONMessageTransformer()
|
Method Summary | |
---|---|
protected void |
buildItemAttributes(com.ibm.json.java.OrderedJSONObject jsonItem,
HashMap<String,Object> ciAttr)
Method to parse the CI attributes by making recursive calls to itself based on the OrderedJSONObject objects obtained. |
protected void |
convertJsonToOperation(com.ibm.json.java.OrderedJSONObject operJsonObj,
BaseOperation operModelObj)
Method to parse the Instance or Model Topic's JSON Operation contents. |
ConfigurationItem |
getGuidConfigItem(String jsonMessage)
Method returns the GUID Life Cycle Topic's ConfigurationItem object after parsing the JSON message. |
OperationSet |
getOperationSet(String jsonMessage)
Method returns the Instance or Model Topic's OperationSet object after parsing the JSON message. |
com.ibm.json.java.JSONObject |
parseToJSONObject(InputStream data)
Method returns the whole JSONObject after parsing the InputStream containing the JSON data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DISBJSONMessageTransformer()
Method Detail |
---|
public com.ibm.json.java.JSONObject parseToJSONObject(InputStream data) throws Exception
data
- The InputStream containing the JSON Message
Exception
- if a problem occurs.public OperationSet getOperationSet(String jsonMessage) throws Exception
jsonMessage
- The JSON message.
Exception
- if a problem occurs.public ConfigurationItem getGuidConfigItem(String jsonMessage) throws Exception
jsonMessage
- The JSON Message.
Exception
- if a problem occurs.protected void convertJsonToOperation(com.ibm.json.java.OrderedJSONObject operJsonObj, BaseOperation operModelObj) throws Exception
operJsonObj
- The OrderedJSONObject containing the ConfigurationItem objects
either in the form of OrderedJSONObject or in the form of
JSONArray.operModelObj
- The BaseOperation object containing either the create,
modify,delete,refresh or reference objects.
Exception
- if a problem occurs.protected void buildItemAttributes(com.ibm.json.java.OrderedJSONObject jsonItem, HashMap<String,Object> ciAttr) throws Exception
jsonItem
- The OrderedJSONObjectciAttr
- an empty LinkedHashMap that needs to be populated.
Exception
- if a problem occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |