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, startElement
protected abstract void receivedServerTag(TServer tag)
tag
- Tag that was receivedTServer
protected abstract void receivedLoggedInTag(TLoggedIn tag)
tag
- Tag that was receivedTLoggedIn
protected abstract void receivedLoggedOutTag(TLoggedOut tag)
tag
- Tag that was receivedTLoggedOut
protected abstract void receivedSetTag(TSet tag)
tag
- Tag that was receivedTSet
protected abstract void receivedXresponseTag(TXresponse tag)
tag
- Tag that was receivedTXresponse
protected abstract void receivedHearTag(THear tag)
tag
- Tag that was receivedTHear
public Tag parseTag() throws org.xml.sax.SAXException
XMLHandler
parseTag
in class XMLHandler
org.xml.sax.SAXException
- if illegal attribute formatingpublic TServer parseServerTag() throws org.xml.sax.SAXException
ClientTagParser
parseServerTag
in interface ClientTagParser
org.xml.sax.SAXException
public TLoggedIn parseLoggedInTag() throws org.xml.sax.SAXException
ClientTagParser
parseLoggedInTag
in interface ClientTagParser
org.xml.sax.SAXException
public TLoggedOut parseLoggedOutTag()
ClientTagParser
parseLoggedOutTag
in interface ClientTagParser
public TSet parseSetTag() throws org.xml.sax.SAXException
ClientTagParser
parseSetTag
in interface ClientTagParser
org.xml.sax.SAXException
public TXresponse parseXresponseTag()
ClientTagParser
parseXresponseTag
in interface ClientTagParser
public THear parseHearTag() throws org.xml.sax.SAXException
ClientTagParser
parseHearTag
in interface ClientTagParser
org.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.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
protected java.lang.String getHeader()