Class Matchers.StringMatcher

java.lang.Object
io.grpc.xds.internal.Matchers.StringMatcher
Enclosing class:
Matchers

public abstract static class Matchers.StringMatcher extends Object
Represents various ways to match a string .
  • Constructor Details

    • StringMatcher

      public StringMatcher()
  • Method Details

    • forExact

      public static Matchers.StringMatcher forExact(String exact, boolean ignoreCase)
      The input string should exactly matches the specified string.
    • forPrefix

      public static Matchers.StringMatcher forPrefix(String prefix, boolean ignoreCase)
      The input string should have the prefix.
    • forSuffix

      public static Matchers.StringMatcher forSuffix(String suffix, boolean ignoreCase)
      The input string should have the suffix.
    • forSafeRegEx

      public static Matchers.StringMatcher forSafeRegEx(com.google.re2j.Pattern regEx)
      The input string should match this pattern.
    • forContains

      public static Matchers.StringMatcher forContains(String contains)
      The input string should contain this substring.
    • matches

      public boolean matches(String args)
      Returns the matching result for this string.