public abstract class ServerXMLHandler extends XMLHandler implements ServerTagParser
XMLHandler
,
ServerTagParser
Modifier and Type | Field and Description |
---|---|
private boolean |
loginReceived |
attr
Constructor and Description |
---|
ServerXMLHandler() |
Modifier and Type | Method and Description |
---|---|
void |
endElement(java.lang.String uri,
java.lang.String lName,
java.lang.String qName) |
java.lang.String |
getHeader()
Returns the header that has to be send to the client upon initiation of
the connection.
|
TClient |
parseClientTag()
By accessing the attributes of the Tag in the HashMap it should create
the TClient tag and make sure that all of them are in correct form
|
TCmd |
parseCmdTag()
By accessing the attributes of the Tag in the HashMap it should create
the TCmd tag and make sure that all of them are in correct form
|
TLogin |
parseLoginTag()
By accessing the attributes of the Tag in the HashMap it should create
the TLogin tag and make sure that all of them are in correct form
|
TLogout |
parseLogoutTag()
By accessing the attributes of the Tag in the HashMap it should create
the TLogout 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 )
|
TXrequest |
parseXrequestTag()
By accessing the attributes of the Tag in the HashMap it should create
the TXrequest tag and make sure that all of them are in correct form
|
protected abstract void |
receivedCmd(TCmd tag)
Method is called when Tag type CMD is received from the client.
|
protected abstract void |
receivedLogin(TLogin tag)
Method is called when Tag type LOGIN is received from the client.
|
protected abstract void |
receivedLogout(TLogout tag)
Method is called when Tag type LOGOUT is received from the client.
|
protected abstract void |
receivedXrequest(TXrequest tag)
Method is called when Tag type XREQUEST is received from the client.
|
characters, convertToColor, endDocument, endOfXMLDocument, getData, getType, getVersion, parseHexImage, startElement
protected abstract void receivedLogin(TLogin tag) throws org.xml.sax.SAXException
tag
- Tag that was receivedorg.xml.sax.SAXException
- if problem with parsing a tag has occurredTLogin
protected abstract void receivedLogout(TLogout tag) throws org.xml.sax.SAXException
tag
- Tag that was receivedorg.xml.sax.SAXException
- if problem with parsing a tag has occurredTLogout
protected abstract void receivedCmd(TCmd tag) throws org.xml.sax.SAXException
tag
- Tag that was receivedorg.xml.sax.SAXException
- if problem with parsing a tag has occurredTCmd
protected abstract void receivedXrequest(TXrequest tag) throws org.xml.sax.SAXException
tag
- Tag that was receivedorg.xml.sax.SAXException
- if problem with parsing a tag has occurredTXrequest
public Tag parseTag() throws org.xml.sax.SAXException
XMLHandler
parseTag
in class XMLHandler
org.xml.sax.SAXException
- if illegal attribute formatingpublic TClient parseClientTag() throws org.xml.sax.SAXException
ServerTagParser
parseClientTag
in interface ServerTagParser
org.xml.sax.SAXException
public TLogin parseLoginTag() throws org.xml.sax.SAXException
ServerTagParser
parseLoginTag
in interface ServerTagParser
org.xml.sax.SAXException
public TCmd parseCmdTag() throws org.xml.sax.SAXException
ServerTagParser
parseCmdTag
in interface ServerTagParser
org.xml.sax.SAXException
public TLogout parseLogoutTag() throws org.xml.sax.SAXException
ServerTagParser
parseLogoutTag
in interface ServerTagParser
org.xml.sax.SAXException
public TXrequest parseXrequestTag() throws org.xml.sax.SAXException
ServerTagParser
parseXrequestTag
in interface ServerTagParser
org.xml.sax.SAXException
public 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
public java.lang.String getHeader()