public class FilterUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
throwOnErrors |
| Modifier and Type | Method and Description |
|---|---|
static void |
configureLogging(Handler handler,
Logger logger) |
static void |
configureLogging(String loggerHandlerClassName,
Logger logger) |
static void |
logException(Logger logger,
Exception ex) |
static boolean |
parseStringToBooleanDefaultingToFalse(String stringToParse)
Parse a String to a boolean.
|
static void |
setThrowOnErrors(boolean throwOnErrors) |
public static void setThrowOnErrors(boolean throwOnErrors)
public static boolean parseStringToBooleanDefaultingToFalse(String stringToParse)
"true" : true "false" : false null : false Anything else : logException(IllegalArgumentException).
This is a stateless static method.
This method is an implementation detail and is not exposed API. This method is only non-private to allow JUnit testing.
stringToParse - a String to parse to a boolean as specifiedIllegalArgumentException - if the String is not true, false, or null.Copyright © 2014-2018 Apereo. All Rights Reserved.