Package org.opennms.core.utils
Class WebSecurityUtils
- java.lang.Object
-
- org.opennms.core.utils.WebSecurityUtils
-
public abstract class WebSecurityUtils extends Object
WebSecurityUtils class.
- Version:
- $Id: $
- Author:
- Jeff Gehlbach
-
-
Constructor Summary
Constructors Constructor Description WebSecurityUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
safeParseDouble(String dirty)
safeParseDoublestatic float
safeParseFloat(String dirty)
safeParseFloatstatic int
safeParseInt(String dirty)
safeParseIntstatic int[]
safeParseInt(String[] dirty)
safeParseIntstatic long
safeParseLong(String dirty)
safeParseLongstatic String
sanitizeDbColumnName(String dirty)
sanitizeDbColumnNamestatic String
sanitizeString(String raw)
sanitizeStringstatic String[]
sanitizeString(String[] raw)
sanitizeStringstatic String
sanitizeString(String raw, boolean allowHTML)
sanitizeString
-
-
-
Method Detail
-
safeParseInt
public static int[] safeParseInt(String[] dirty) throws NumberFormatException
safeParseInt
- Parameters:
dirty
- an array ofString
objects.- Returns:
- an array of int.
- Throws:
NumberFormatException
- if any.
-
safeParseInt
public static int safeParseInt(String dirty) throws NumberFormatException
safeParseInt
- Parameters:
dirty
- aString
object.- Returns:
- a int.
- Throws:
NumberFormatException
- if any.
-
safeParseLong
public static long safeParseLong(String dirty) throws NumberFormatException
safeParseLong
- Parameters:
dirty
- aString
object.- Returns:
- a long.
- Throws:
NumberFormatException
- if any.
-
safeParseFloat
public static float safeParseFloat(String dirty) throws NumberFormatException
safeParseFloat
- Parameters:
dirty
- aString
object.- Returns:
- a float.
- Throws:
NumberFormatException
- if any.
-
safeParseDouble
public static double safeParseDouble(String dirty) throws NumberFormatException
safeParseDouble
- Parameters:
dirty
- aString
object.- Returns:
- a double.
- Throws:
NumberFormatException
- if any.
-
-