パッケージ org.springframework.util

クラス AntPathMatcher.AntPathStringMatcher

java.lang.ObjectSE
org.springframework.util.AntPathMatcher.AntPathStringMatcher
含まれているクラス:
AntPathMatcher

protected static class AntPathMatcher.AntPathStringMatcher extends ObjectSE
文字列が PatternSE を介してパターンと一致するかどうかをテストします。

パターンには特殊文字を含めることができます。"*" は 0 個以上の文字を意味します。'?' 1 文字のみを意味します。"{" と "}" は URI テンプレートパターンを示します。たとえば、/users/{user}

  • コンストラクターの詳細

    • AntPathStringMatcher

      public AntPathStringMatcher(StringSE pattern)
    • AntPathStringMatcher

      public AntPathStringMatcher(StringSE pattern, boolean caseSensitive)
  • メソッドの詳細

    • matchStrings

      public boolean matchStrings(StringSE str, @Nullable MapSE<StringSE,StringSE> uriTemplateVariables)
      メインエントリポイント。
      戻り値:
      文字列がパターンと一致する場合は true、そうでない場合は false