+ Processed <%= data.getNumProcessed() %> record(s); <%= data.getNumErrors() %> + error(s) reported.
+ <%= data.getMessage() %> +
str
. If str
is
* null
, returns null
.
*/
- public static String encodeStringSQL(String str)
+ public static final String encodeStringSQL(String str)
{
if (str==null)
return null; // safety feature
@@ -81,7 +81,7 @@ public class StringUtil
* @return The HTML-encoded equivalent of str
. If str
is
* null
, returns null
.
*/
- public static String encodeHTML(String str)
+ public static final String encodeHTML(String str)
{
if (str==null)
return null; // safety feature
@@ -134,7 +134,7 @@ public class StringUtil
* @return true
if the given string is null
or a string of
* length 0, false
otherwise.
*/
- public static boolean isStringEmpty(String s)
+ public static final boolean isStringEmpty(String s)
{
return ((s==null) || (s.length()==0));
@@ -157,7 +157,7 @@ public class StringUtil
* of the find
string will be deleted.
* @return The base
string with all replacements made as detailed above.
*/
- public static String replaceAllInstances(String base, String find, String replace)
+ public static final String replaceAllInstances(String base, String find, String replace)
{
if ((base==null) || isStringEmpty(find))
return base; // safety feature
@@ -204,7 +204,7 @@ public class StringUtil
* base
.
* @return The base
string with all variable substitutions made as detailed above.
*/
- public static String replaceAllVariables(String base, Map vars)
+ public static final String replaceAllVariables(String base, Map vars)
{
if ((base==null) || (vars==null) || (vars.size()==0))
return base; // safety feature
@@ -244,5 +244,39 @@ public class StringUtil
} // end replaceAllVariables
+ public static final String join(Object[] arr, String separator)
+ {
+ StringBuffer buf = null;
+ for (int i=0; iSecurityMonitor
which is configured by means of XML data, supplied by means of a Venice
@@ -118,28 +119,17 @@ public class StaticSecurityMonitor implements SecurityMonitor
*/
public StaticSecurityMonitor(Element cfg, SecurityMonitorEnvironment env) throws ConfigException
{
+ XMLLoader loader = XMLLoader.get();
boolean set_root_monitor = false;
- if (!(cfg.getTagName().equals("security-definition")))
- { // not the right kind of element!
- logger.fatal("security monitor config is not a + Processed <%= data.getNumProcessed() %> record(s); <%= data.getNumErrors() %> + error(s) reported.