Static class which parses and process XML with messages.
More...
|
static Document | parseXml (String XMLString) |
|
Static class which parses and process XML with messages.
Static class which parses and process XML with messages
- Author
- idytrych
Definition at line 44 of file MessageProcessor.java.
static String cz.vutbr.fit.knot.annotations.comet.MessageProcessor.getElementContent |
( |
Element |
contentEl | ) |
|
|
static |
Gets content of XML emement If element have only child with textual content, it returns this content. If element have CDATA section eventually surrounded with text nodes, content of CDATA section is returned.
- Parameters
-
contentEl | Element with content |
- Returns
- Content of XML emement
Definition at line 422 of file MessageProcessor.java.
static String cz.vutbr.fit.knot.annotations.comet.MessageProcessor.getHexString |
( |
byte[] |
b | ) |
|
|
static |
static boolean cz.vutbr.fit.knot.annotations.comet.MessageProcessor.isGroupIncluded |
( |
String |
gStr | ) |
|
|
static |
Checks whether id of user group is included in beginning of given string
- Parameters
-
- Returns
- If id of user group is included, returns true, false otherwise
Definition at line 511 of file MessageProcessor.java.
static Document cz.vutbr.fit.knot.annotations.comet.MessageProcessor.parseXml |
( |
String |
XMLString | ) |
|
|
staticprivate |
Parses XML with messages from client
- Parameters
-
XMLString | String with XML with messages from client |
- Returns
- Parsed XML in w3c.dom.Document
Definition at line 380 of file MessageProcessor.java.
static RequestInfo cz.vutbr.fit.knot.annotations.comet.MessageProcessor.processXML |
( |
String |
XMLString | ) |
|
|
static |
Parses and process XML with messages from client
- Parameters
-
XMLString | String with XML with messages from client |
- Returns
- Object with informations about client request
Definition at line 59 of file MessageProcessor.java.
static String cz.vutbr.fit.knot.annotations.comet.MessageProcessor.replaceArrows |
( |
String |
aString | ) |
|
|
static |
Replaces arrows with spaces in given string by slashes " -> ", " ->", "-> " and "->" are replaced by "/"
- Parameters
-
aString | String with arrows |
- Returns
- Returns string with slashes instead arrows
Definition at line 465 of file MessageProcessor.java.
static String cz.vutbr.fit.knot.annotations.comet.MessageProcessor.unescapeXML |
( |
String |
escaped | ) |
|
|
static |
Replaces escaped characters in XML with its original character representation.
- Parameters
-
escaped | Character string containing items escaped by XML processor |
- Returns
- Common character string free of escaped version of characters
Definition at line 479 of file MessageProcessor.java.
String cz.vutbr.fit.knot.annotations.comet.MessageProcessor.unescapeXMLAmp = "&" |
|
staticprivate |
String cz.vutbr.fit.knot.annotations.comet.MessageProcessor.unescapeXMLApos = "'" |
|
staticprivate |
String cz.vutbr.fit.knot.annotations.comet.MessageProcessor.unescapeXMLGT = ">" |
|
staticprivate |
String cz.vutbr.fit.knot.annotations.comet.MessageProcessor.unescapeXMLLT = "<" |
|
staticprivate |
String cz.vutbr.fit.knot.annotations.comet.MessageProcessor.unescapeXMLQuotes = """ |
|
staticprivate |
The documentation for this class was generated from the following file: