|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--ami.AMIServiceReader
Thread used to read and check incoming AIS ( AMI Input Services )
Singleton
Field Summary | |
private AMIServiceProcessor |
asp
|
private static AMIServiceReader |
asr
Self instance used for signleton pattern |
private static boolean |
bStop
|
private Hashtable |
hCurrentAIS
|
private int |
iCheckInterval
|
private String |
sCurrentCriteriaProtocol
|
private Thread |
tThread
|
private Vector |
vAISPacket
vector vAISPacket contains n hashtable hCurrentAIS hashtable hCurrentAIS contains attributes entries and an object ( vector or string ) if any subelements -- AR case: Hashtable ar contains n vectors vParam Each vParam vector contains n sParam string array sParam array contains entries of the param ( "name", "value", "and" ) -- EAI case: "eai" -> hEAI hEAI hashtable contains EAI properties |
Constructor Summary | |
private |
AMIServiceReader(AMIServiceProcessor asp)
Constructor for the AMIServiceReader object |
Method Summary | |
static AMIServiceReader |
getInstance(AMIServiceProcessor asp)
Return a self instance Implementation of the singleton pattern |
void |
run()
Main processing method for the AMIServiceReader object |
void |
startDocument()
Called at the beginning of the query |
void |
startElement(String sUri,
String sName,
String sQName,
org.xml.sax.Attributes attributes)
Called when we start an element |
void |
startPrefixMapping(String sPrefix,
String sUri)
Called to process namespaces |
(package private) static void |
stop()
Finalize the service reader |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
|
Field Detail |
private Thread tThread
private int iCheckInterval
private Vector vAISPacket
vector vAISPacket contains n hashtable hCurrentAIS
hashtable hCurrentAIS contains attributes entries and an object ( vector or string ) if any subelements
-- AR case:
Hashtable ar contains n vectors vParam
Each vParam vector contains n sParam string array
sParam array contains entries of the param ( "name", "value", "and" )
-- EAI case: "eai" -> hEAI
hEAI hashtable contains EAI properties
private Hashtable hCurrentAIS
private String sCurrentCriteriaProtocol
private AMIServiceProcessor asp
private static volatile boolean bStop
private static AMIServiceReader asr
Constructor Detail |
private AMIServiceReader(AMIServiceProcessor asp)
Method Detail |
public static AMIServiceReader getInstance(AMIServiceProcessor asp)
Implementation of the singleton pattern
public void run()
run
in interface Runnable
public void startPrefixMapping(String sPrefix, String sUri) throws org.xml.sax.SAXException
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
sPrefix
- Description of ParametersUri
- Description of Parameterorg.xml.sax.SAXException
- Description of Exceptionpublic void startDocument()
startDocument
in class org.xml.sax.helpers.DefaultHandler
public void startElement(String sUri, String sName, String sQName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in class org.xml.sax.helpers.DefaultHandler
sUri
- Description of ParametersName
- Description of ParametersQName
- Description of Parameterattributes
- Description of Parameterorg.xml.sax.SAXException
- Description of Exceptionstatic void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |