Class HeaderHelper
java.lang.Object
org.jboss.resteasy.util.HeaderHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsHeaderString
(String value, String valueSeparatorRegex, Predicate<String> valuePredicate) Checks if the value of a header contains an entry separated by thevalueSeparatorRegex
parameter.static void
static void
-
Constructor Details
-
HeaderHelper
public HeaderHelper()
-
-
Method Details
-
containsHeaderString
public static boolean containsHeaderString(String value, String valueSeparatorRegex, Predicate<String> valuePredicate) Checks if the value of a header contains an entry separated by thevalueSeparatorRegex
parameter. If the parameter isnull
, a "," separator is used.- Parameters:
value
- the header value to check, ifnull
false
will be returnedvalueSeparatorRegex
- the regex value used to parse the header string value into parts, ifnull
a comma is usedvaluePredicate
- the predicate used to check the values, cannot benull
- Returns:
true
if the header value exists and the predicate matches the whitespace-trimmed value.- See Also:
-
setAllow
-
setAllow
-