|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wikimodel.wem.WikiPageUtil
public class WikiPageUtil
This class contains some utility methods used for escaping xml strings as well as for encoding/decoding http parameters.
| Constructor Summary | |
|---|---|
WikiPageUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
decodeHttpParams(java.lang.String str)
Returns the decoded http string - all special symbols, replaced by replaced by the %[HEX HEX] sequence, where [HEX HEX] is the hexadecimal code of the escaped symbol will be restored to its original characters (see RFC-2616 http://www.w3.org/Protocols/rfc2616/). |
static java.lang.String |
encodeHttpParams(java.lang.String str)
Returns the encoded string - all special symbols will be replaced by %[HEX HEX] sequence, where [HEX HEX] is the hexadecimal code of the escaped symbol (see RFC-2616 http://www.w3.org/Protocols/rfc2616/rfc2616.html). |
static java.lang.String |
escapeXmlAttribute(java.lang.String str)
Returns the escaped attribute string. |
static java.lang.String |
escapeXmlString(java.lang.String str)
Returns the escaped string. |
static java.lang.String |
escapeXmlString(java.lang.String str,
boolean escapeQuots)
Returns the escaped string. |
static java.lang.String |
getCDATA(java.lang.String text)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WikiPageUtil()
| Method Detail |
|---|
public static java.lang.String decodeHttpParams(java.lang.String str)
str - the string to decode
public static java.lang.String encodeHttpParams(java.lang.String str)
str - the string to encode
public static java.lang.String escapeXmlAttribute(java.lang.String str)
str - the string to escape
public static java.lang.String escapeXmlString(java.lang.String str)
str - the string to escape
public static java.lang.String escapeXmlString(java.lang.String str,
boolean escapeQuots)
str - the string to escapeescapeQuots - if this flag is true then "'" and "\""
symbols also will be escaped
public static java.lang.String getCDATA(java.lang.String text)
text -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||