|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--amisample.ASUtil
Set of utility methods used by amisample project
Field Summary | |
private static String |
access
|
private static ArrayList |
al
|
private static String |
arg
|
private static String |
code
|
private static String |
id
|
private static String |
name
|
private static Random |
random
A randomizer |
private static String |
value
|
Constructor Summary | |
ASUtil()
|
Method Summary | |
(package private) static String |
addAMISet(String sParam,
String sValue)
Add a new entry in the given set |
(package private) static void |
addAR(String sParam,
String sValue,
org.xml.sax.helpers.DefaultHandler dh,
String sID)
Perform a discovery AR |
(package private) static String |
deleteAMISet(String sParam,
String sElement)
Send an AIS set remove query to drop an amiset element |
(package private) static String |
getRandomID()
Return a random ID on 32 bits in radix 36 |
(package private) static String |
loadAMIParam(String sParam)
Send an AIS parameter query and parse it, then load the value |
(package private) static ArrayList |
loadAMISet(String sParam)
Send an AIS set query and parse it, then load the value |
(package private) static void |
parseXML(String sFileName,
org.xml.sax.helpers.DefaultHandler dh,
boolean bValidating)
This is a generic method to parse a XML file using SAX and using the given Handler. |
protected void |
sendAR()
Perform an AMI Address Request to get list of substribed IPs |
private static void |
writeAIS(String sAIS)
Access to in.xml file |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static Random random
private static String name
private static String id
private static String arg
private static String value
private static String access
private static String code
private static ArrayList al
Constructor Detail |
public ASUtil()
Method Detail |
protected void sendAR()
private static void writeAIS(String sAIS) throws ASException
sAIS
- the AISstatic String getRandomID()
static String loadAMIParam(String sParam) throws ASException
static ArrayList loadAMISet(String sParam) throws ASException
static String deleteAMISet(String sParam, String sElement) throws ASException
sParam
- amiset for the elementsElement
- element to drop from the amisetASException
- static String addAMISet(String sParam, String sValue) throws ASException
sParam
- The set namesValue
- value to addstatic void addAR(String sParam, String sValue, org.xml.sax.helpers.DefaultHandler dh, String sID) throws Exception
sParam
- criteria parametersValue
- criteria valuedh
- the hanfler to parse the resultssID
- AR idstatic void parseXML(String sFileName, org.xml.sax.helpers.DefaultHandler dh, boolean bValidating) throws ASException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |