public class Utility extends Object
Modifier and Type | Method and Description |
---|---|
static String |
esc(String str)
Provide XHTML-safe escaping for a string.
|
static boolean |
isLocalhost(String host)
Tell if a host name refers to the localhost.
|
public static String esc(String str)
'
, we use '
instead.str
- String to escape.public static boolean isLocalhost(String host)
host
- Host name to check.Copyright © 1999-2015 Apache OODT. All Rights Reserved.