Interface StringMultiValueMatcher


public interface StringMultiValueMatcher
Extends CookieMatcher for things where the value is a string, like headers and query parameters.
  • Method Details

    • isPresent

      RouteContinuation isPresent()
      Matches requests where the list of values is not empty.
      Returns:
      RouteContinuation for the next steps of building a route.
    • firstValue

      RouteContinuation firstValue(CharSequence value)
      Matches requests where the first value in the request is equal to value.
      Parameters:
      value - the value to match against.
      Returns:
      RouteContinuation for the next steps of building a route.
    • firstValue

      RouteContinuation firstValue(Predicate<CharSequence> predicate)
      Matches requests where the first value in the request matches predicate.
      Parameters:
      predicate - the Predicate to match against the values.
      Returns:
      RouteContinuation for the next steps of building a route.
    • values

      RouteContinuation values(Predicate<Iterator<? extends CharSequence>> predicate)
      Matches requests where the list of values matches the predicate.
      Parameters:
      predicate - the Predicate to match against the list of values.
      Returns:
      RouteContinuation for the next steps of building a route.
    • firstValueMatches

      RouteContinuation firstValueMatches(String regex)
      Matches requests where the first value in the request matches the regex regex.
      Parameters:
      regex - the regex to match against the values.
      Returns:
      RouteContinuation for the next steps of building a route.
    • firstValueMatches

      RouteContinuation firstValueMatches(Pattern regex)
      Matches requests where the first value in the request matches the regex regex.
      Parameters:
      regex - the regex to match against the values.
      Returns:
      RouteContinuation for the next steps of building a route.