クラス AbstractRequestMatcherRegistry<C>

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

      • AbstractRequestMatcherRegistry

        public AbstractRequestMatcherRegistry()
    • メソッドの詳細

      • setApplicationContext

        protected final void setApplicationContext​(org.springframework.context.ApplicationContext context)
      • getApplicationContext

        protected final org.springframework.context.ApplicationContext getApplicationContext()
        ApplicationContext を取得します
        戻り値:
        ApplicationContext
      • anyRequest

        public C anyRequest()
        リクエストをマッピングします。
        戻り値:
        RequestMatcher の作成後にチェーンされるオブジェクト
      • antMatchers

        public C antMatchers​(org.springframework.http.HttpMethod method)
        AntPathRequestMatcher インスタンスの List をマップします。
        パラメーター:
        method - HttpMethod に使用する HttpMethod 
        戻り値:
        RequestMatcher の作成後にチェーンされるオブジェクト
      • antMatchers

        public C antMatchers​(org.springframework.http.HttpMethod method,
                             java.lang.String... antPatterns)
        AntPathRequestMatcher インスタンスの List をマップします。
        パラメーター:
        method - 使用する HttpMethod または任意の HttpMethod の null 
        antPatterns - 作成する ant パターン。null または空の場合、何にも一致しません。
        戻り値:
        RequestMatcher の作成後にチェーンされるオブジェクト
      • antMatchers

        public C antMatchers​(java.lang.String... antPatterns)
        使用されている HttpMethod を気にしない AntPathRequestMatcher インスタンスの List をマップします。
        パラメーター:
        antPatterns - AntPathRequestMatcher を作成する ant パターン
        戻り値:
        RequestMatcher の作成後にチェーンされるオブジェクト
      • mvcMatchers

        public abstract C mvcMatchers​(java.lang.String... mvcPatterns)

        どの HttpMethod が使用されているかを考慮しない MvcRequestMatcher をマップします。このマッチャーは、Spring MVC がマッチングに使用するのと同じルールを使用します。例: 多くの場合、パス "/path" のマッピングは "/path","/path/","/path.html" などで一致します。

        現在のリクエストが Spring MVC によって処理されない場合、パターンを ant パターンとして使用する妥当なデフォルトが使用されます。

        パラメーター:
        mvcPatterns - 一致するパターン。マッチングのルールは Spring MVC によって定義されます
        戻り値:
        RequestMatcher の作成後にチェーンされるオブジェクト
      • mvcMatchers

        public abstract C mvcMatchers​(org.springframework.http.HttpMethod method,
                                      java.lang.String... mvcPatterns)

        一致する特定の HttpMethod も指定する MvcRequestMatcher をマップします。このマッチャーは、Spring MVC がマッチングに使用するのと同じルールを使用します。例: 多くの場合、パス "/path" のマッピングは "/path","/path/","/path.html" などで一致します。

        現在のリクエストが Spring MVC によって処理されない場合、パターンを ant パターンとして使用する妥当なデフォルトが使用されます。

        パラメーター:
        method - 照合する HTTP メソッド
        mvcPatterns - 一致するパターン。マッチングのルールは Spring MVC によって定義されます
        戻り値:
        RequestMatcher の作成後にチェーンされるオブジェクト
      • createMvcMatchers

        protected final java.util.List<MvcRequestMatcher> createMvcMatchers​(org.springframework.http.HttpMethod method,
                                                                            java.lang.String... mvcPatterns)
        渡されたメソッドとパターンの MvcRequestMatcher インスタンスを作成します
        パラメーター:
        method - 使用する HTTP メソッド、または使用する必要がある場合は null
        mvcPatterns - 一致する Spring MVC パターン
        戻り値:
        MvcRequestMatcher インスタンスのリスト
      • regexMatchers

        public C regexMatchers​(org.springframework.http.HttpMethod method,
                               java.lang.String... regexPatterns)
        RegexRequestMatcher インスタンスの List をマップします。
        パラメーター:
        method - 使用する HttpMethod または任意の HttpMethod の null 
        regexPatterns - RegexRequestMatcher を作成する正規表現
        戻り値:
        RequestMatcher の作成後にチェーンされるオブジェクト
      • regexMatchers

        public C regexMatchers​(java.lang.String... regexPatterns)
        HttpMethod を指定しない RegexRequestMatcher インスタンスの List を作成します。
        パラメーター:
        regexPatterns - RegexRequestMatcher を作成する正規表現
        戻り値:
        RequestMatcher の作成後にチェーンされるオブジェクト
      • dispatcherTypeMatchers

        public C dispatcherTypeMatchers​(@Nullable
                                        org.springframework.http.HttpMethod method,
                                        javax.servlet.DispatcherType... dispatcherTypes)
        DispatcherTypeRequestMatcher インスタンスの List をマップします。
        パラメーター:
        method - 使用する HttpMethod または任意の HttpMethod の null 
        dispatcherTypes - 照合するディスパッチャー型
        戻り値:
        RequestMatcher の作成後にチェーンされるオブジェクト
      • dispatcherTypeMatchers

        public C dispatcherTypeMatchers​(javax.servlet.DispatcherType... dispatcherTypes)
        HttpMethod を指定しない DispatcherTypeRequestMatcher インスタンスの List を作成します。
        パラメーター:
        dispatcherTypes - 照合するディスパッチャー型
        戻り値:
        RequestMatcher の作成後にチェーンされるオブジェクト
      • chainRequestMatchers

        protected abstract C chainRequestMatchers​(java.util.List<RequestMatcher> requestMatchers)
        サブクラスは、RequestMatcher インスタンスの作成にチェーンされたオブジェクトを返すためにこのメソッドを実装する必要があります。
        パラメーター:
        requestMatchers - 作成された RequestMatcher インスタンス
        戻り値:
        RequestMatcher への何かの関連付けを可能にするサブクラスのチェーンオブジェクト