|
|||||||||||
| 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,
java.util.HashMap<java.lang.String,java.lang.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(java.lang.String jsonMessage)
Method returns the GUID Life Cycle Topic's ConfigurationItem object after parsing the JSON message. |
OperationSet |
getOperationSet(java.lang.String jsonMessage)
Method returns the Instance or Model Topic's OperationSet object after parsing the JSON message. |
com.ibm.json.java.JSONObject |
parseToJSONObject(java.io.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(java.io.InputStream data)
throws java.lang.Exception
data - The InputStream containing the JSON Message
java.lang.Exception - if a problem occurs.
public OperationSet getOperationSet(java.lang.String jsonMessage)
throws java.lang.Exception
jsonMessage - The JSON message.
java.lang.Exception - if a problem occurs.
public ConfigurationItem getGuidConfigItem(java.lang.String jsonMessage)
throws java.lang.Exception
jsonMessage - The JSON Message.
java.lang.Exception - if a problem occurs.
protected void convertJsonToOperation(com.ibm.json.java.OrderedJSONObject operJsonObj,
BaseOperation operModelObj)
throws java.lang.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.
java.lang.Exception - if a problem occurs.
protected void buildItemAttributes(com.ibm.json.java.OrderedJSONObject jsonItem,
java.util.HashMap<java.lang.String,java.lang.Object> ciAttr)
throws java.lang.Exception
jsonItem - The OrderedJSONObjectciAttr - an empty LinkedHashMap that needs to be populated.
java.lang.Exception - if a problem occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||