Package org.jboss.resteasy.util
Class HeaderHelper
java.lang.Object
org.jboss.resteasy.util.HeaderHelper
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsHeaderString(String value, String valueSeparatorRegex, Predicate<String> valuePredicate) Checks if the value of a header contains an entry separated by thevalueSeparatorRegexparameter.static voidstatic 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 thevalueSeparatorRegexparameter. If the parameter isnull, a "," separator is used.- Parameters:
value- the header value to check, ifnullfalsewill be returnedvalueSeparatorRegex- the regex value used to parse the header string value into parts, ifnulla comma is usedvaluePredicate- the predicate used to check the values, cannot benull- Returns:
trueif the header value exists and the predicate matches the whitespace-trimmed value.- See Also:
-
setAllow
-
setAllow
-