|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.nms.util.tl1.TL1ClientUtil
public class TL1ClientUtil
This class provides convenient utility methods for developing TL1 applications. It provides methods to convert and extract required * information from the TL1 Response Message and TL1 Autonomous Message into a more convenient format. This class is to be used only on the Web NMS Client Side.
| Constructor Summary | |
|---|---|
TL1ClientUtil()
|
|
| Method Summary | |
|---|---|
static com.adventnet.tl1.message.TL1AutonomousMessage |
convertNotification(java.lang.Object notifyEvent)
To convert an Notification Event Object into an TL1AutonomousMessage. |
static com.adventnet.tl1.message.TL1ResponseMessage |
convertResponse(com.adventnet.management.ManagementServerResultEvent rev)
Method to convert ManagementServerResultEvent object into a TL1ResponseMessage object. |
static com.adventnet.tl1.message.TL1ResponseMessage |
convertResponse(java.lang.Object result)
Method to convert result Object into a TL1ResponseMessage object. |
static java.util.Hashtable |
convertTL1Line(com.adventnet.tl1.message.TL1Line tl1Line,
boolean pdef)
Method to convert a TL1Line into a Hashtable. |
static java.lang.String |
findAndReplace(java.lang.String str,
java.lang.String find,
java.lang.String replace)
Method to search for a particular sub-string instances in a string and replace all those sun-string instances with another string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TL1ClientUtil()
| Method Detail |
|---|
public static com.adventnet.tl1.message.TL1ResponseMessage convertResponse(com.adventnet.management.ManagementServerResultEvent rev)
rev - The ManagementServerResultEvent object that needs
to converted into TL1ResponseMessage. This is the object obtained
when you do a Synchronous Send using the Management Server or
Management Client.
public static com.adventnet.tl1.message.TL1ResponseMessage convertResponse(java.lang.Object result)
result - This is the object obtained in the callback
setProtocolResult(Property prop, Object result) method when
you do an Asynchronous Send using the Management Server or
Management Client.
public static com.adventnet.tl1.message.TL1AutonomousMessage convertNotification(java.lang.Object notifyEvent)
notifyEvent - This is the object obtained in the
setEventResult(Property prop, Object notifEvent) method when you
register for Notification with the Management Server or Management
Client.
public static java.util.Hashtable convertTL1Line(com.adventnet.tl1.message.TL1Line tl1Line,
boolean pdef)
tl1line - The TL1Line Object.pdef - boolean value. If this value is set to false this
this method will map only the parameters which are name-value pairs.
It will dump all position defined parameter values one by one
blindly against a key "position_defined". The values are seperated by
the character "#"
If this value is set to true this method will map the position defined
parameter also. Position number of the parameter is used as the key.
public static java.lang.String findAndReplace(java.lang.String str,
java.lang.String find,
java.lang.String replace)
str - String in which the change has to be made.find - the String which has to be searched and removed.replace - the String which will replace.
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||