public class Scrubber
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
PROHIBITED_INPUT |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canScrub(java.lang.Object value)
If this scrubber can actually scrub the given value
|
static java.lang.Object |
scrub(java.lang.Object value)
Given an input String/Map/List/Array
this method will scrub the input
and return the scrubber output
|
static java.lang.Object |
scrub(java.lang.Object value,
java.lang.String... prohibitedInput)
Given an input String/Map/List/Array
this method will scrub the input
and return the scrubber output
|
public static boolean canScrub(java.lang.Object value)
value - value to be checkedpublic static java.lang.Object scrub(java.lang.Object value)
value - the value to be scrubbedpublic static java.lang.Object scrub(java.lang.Object value,
java.lang.String... prohibitedInput)
value - the value to be scrubbedprohibitedInput - the list of prohbited inputs to be scrubbed