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, startElementprotected 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 occurredTLoginprotected 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 occurredTLogoutprotected 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 occurredTCmdprotected 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 occurredTXrequestpublic Tag parseTag() throws org.xml.sax.SAXException
XMLHandlerparseTag in class XMLHandlerorg.xml.sax.SAXException - if illegal attribute formatingpublic TClient parseClientTag() throws org.xml.sax.SAXException
ServerTagParserparseClientTag in interface ServerTagParserorg.xml.sax.SAXExceptionpublic TLogin parseLoginTag() throws org.xml.sax.SAXException
ServerTagParserparseLoginTag in interface ServerTagParserorg.xml.sax.SAXExceptionpublic TCmd parseCmdTag() throws org.xml.sax.SAXException
ServerTagParserparseCmdTag in interface ServerTagParserorg.xml.sax.SAXExceptionpublic TLogout parseLogoutTag() throws org.xml.sax.SAXException
ServerTagParserparseLogoutTag in interface ServerTagParserorg.xml.sax.SAXExceptionpublic TXrequest parseXrequestTag() throws org.xml.sax.SAXException
ServerTagParserparseXrequestTag in interface ServerTagParserorg.xml.sax.SAXExceptionpublic 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.SAXExceptionpublic java.lang.String getHeader()