public abstract class ClientXMLHandler extends XMLHandler implements ClientTagParser
XMLHandler,
ClientTagParser| Modifier and Type | Field and Description |
|---|---|
private boolean |
loggedOut |
attr| Constructor and Description |
|---|
ClientXMLHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
endElement(java.lang.String uri,
java.lang.String lName,
java.lang.String qName) |
protected java.lang.String |
getHeader()
Returns the header that has to be send to the server upon initiation of
the connection.
|
THear |
parseHearTag()
By accessing the attributes of the Tag it should create the THear tag and
make sure that all of them are in correct form
|
TLoggedIn |
parseLoggedInTag()
By accessing the attributes of the Tag in the HashMap it should create
the TLoggedIn tag and make sure that all of them are in correct form
|
TLoggedOut |
parseLoggedOutTag()
By accessing the attributes of the Tag in the HashMap it should create
the TLoggedOut tag and make sure that all of them are in correct form
|
TServer |
parseServerTag()
By accessing the attributes of the Tag in the HashMap it should create
the TServer tag and make sure that all of them are in correct form
|
TSet |
parseSetTag()
By accessing the attributes of the Tag in the HashMap it should create
the TSet tag and make sure that all of them are in correct form
|
Tag |
parseTag()
Parses and creates the Tag appropriate type ( can get type by calling
getType() method )
|
TXresponse |
parseXresponseTag()
By accessing the attributes of the Tag in the HashMap it should create
the TXresponse tag and make sure that all of them are in correct form
|
protected abstract void |
receivedHearTag(THear tag)
Method is called when Tag type HEAR is received from the server.
|
protected abstract void |
receivedLoggedInTag(TLoggedIn tag)
Method is called when Tag type LOGGED_IN is received from the server.
|
protected abstract void |
receivedLoggedOutTag(TLoggedOut tag)
Method is called when Tag type LOGGED_OUT is received from the server.
|
protected abstract void |
receivedServerTag(TServer tag)
Method is called when Tag type SERVER is received from the server.
|
protected abstract void |
receivedSetTag(TSet tag)
Method is called when Tag type SET is received from the server.
|
protected abstract void |
receivedXresponseTag(TXresponse tag)
Method is called when Tag type XRESPONSE is received from the server.
|
characters, convertToColor, endDocument, endOfXMLDocument, getData, getType, getVersion, parseHexImage, startElementprotected abstract void receivedServerTag(TServer tag)
tag - Tag that was receivedTServerprotected abstract void receivedLoggedInTag(TLoggedIn tag)
tag - Tag that was receivedTLoggedInprotected abstract void receivedLoggedOutTag(TLoggedOut tag)
tag - Tag that was receivedTLoggedOutprotected abstract void receivedSetTag(TSet tag)
tag - Tag that was receivedTSetprotected abstract void receivedXresponseTag(TXresponse tag)
tag - Tag that was receivedTXresponseprotected abstract void receivedHearTag(THear tag)
tag - Tag that was receivedTHearpublic Tag parseTag() throws org.xml.sax.SAXException
XMLHandlerparseTag in class XMLHandlerorg.xml.sax.SAXException - if illegal attribute formatingpublic TServer parseServerTag() throws org.xml.sax.SAXException
ClientTagParserparseServerTag in interface ClientTagParserorg.xml.sax.SAXExceptionpublic TLoggedIn parseLoggedInTag() throws org.xml.sax.SAXException
ClientTagParserparseLoggedInTag in interface ClientTagParserorg.xml.sax.SAXExceptionpublic TLoggedOut parseLoggedOutTag()
ClientTagParserparseLoggedOutTag in interface ClientTagParserpublic TSet parseSetTag() throws org.xml.sax.SAXException
ClientTagParserparseSetTag in interface ClientTagParserorg.xml.sax.SAXExceptionpublic TXresponse parseXresponseTag()
ClientTagParserparseXresponseTag in interface ClientTagParserpublic THear parseHearTag() throws org.xml.sax.SAXException
ClientTagParserparseHearTag in interface ClientTagParserorg.xml.sax.SAXException - if "from" or "to" contains illegal object idpublic void endElement(java.lang.String uri,
java.lang.String lName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionprotected java.lang.String getHeader()