|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjimm.twice.util.HttpUtils
Contains static utility methods useful when dealing with HTTP and HTML.
| Constructor Summary | |
HttpUtils()
|
|
| Method Summary | |
static java.lang.String |
escape(java.lang.String str)
Returns a string that has all HTML special characters escaped. |
static java.lang.String |
escape(java.lang.String str,
boolean addLineBreaks)
Returns a string that has all HTML special characters escaped and optionally adds "<br/>" line breaks after every ">" that appears in the input string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpUtils()
| Method Detail |
public static java.lang.String escape(java.lang.String str)
str - a string
public static java.lang.String escape(java.lang.String str,
boolean addLineBreaks)
str - a stringaddLineBreaks - if true, we add "<br/>" after
every ">" found in the input
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||