Interface StringMultiValueMatcher


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

      • firstValue

        RouteContinuation firstValue​(java.lang.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​(java.util.function.Predicate<java.lang.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​(java.util.function.Predicate<java.util.Iterator<? extends java.lang.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​(java.lang.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​(java.util.regex.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.