クラス CompositeUriComponentsContributor

java.lang.ObjectSE
org.springframework.web.method.support.CompositeUriComponentsContributor
実装されたすべてのインターフェース:
UriComponentsContributor

public class CompositeUriComponentsContributor extends ObjectSE implements UriComponentsContributor
委譲する他のコントリビューターのリストを含む UriComponentsContributor と、メソッド引数値を文字列としてフォーマットするために使用する特定の ConversionService をカプセル化します。
導入:
4.0
作成者:
Rossen Stoyanchev, Juergen Hoeller, Sam Brannen
  • コンストラクターの詳細

  • メソッドの詳細

    • hasContributors

      public boolean hasContributors()
      この CompositeUriComponentsContributor にコントリビューターがいるかどうかを確認します。
      戻り値:
      この CompositeUriComponentsContributor が委譲先のコントリビューターとともに作成された場合は true 
    • supportsParameter

      public boolean supportsParameter(MethodParameter parameter)
      インターフェースからコピーされた説明: UriComponentsContributor
      このコントリビュータが指定されたメソッドパラメーターをサポートするかどうか。
      次で指定:
      インターフェース UriComponentsContributorsupportsParameter 
    • contributeMethodArgument

      public void contributeMethodArgument(MethodParameter parameter, ObjectSE value, UriComponentsBuilder builder, MapSE<StringSE,ObjectSE> uriVariables, ConversionService conversionService)
      インターフェースからコピーされた説明: UriComponentsContributor
      指定されたメソッド引数を処理し、UriComponentsBuilder を更新するか、すべての引数が処理された後に URI を展開するために使用する URI 変数でマップに追加します。
      次で指定:
      インターフェース UriComponentsContributorcontributeMethodArgument 
      パラメーター:
      parameter - コントローラーメソッドパラメーター (非 null)
      value - 引数値 (おそらく null)
      builder - 更新するビルダー (非 null)
      uriVariables - URI 変数を追加するマップ (非 null)
      conversionService - 値を文字列としてフォーマットする ConversionService
    • contributeMethodArgument

      public void contributeMethodArgument(MethodParameter parameter, ObjectSE value, UriComponentsBuilder builder, MapSE<StringSE,ObjectSE> uriVariables)
      構築時に作成された ConversionService を使用するオーバーロードメソッド。