クラス LocalHostUriTemplateHandler

java.lang.ObjectSE
org.springframework.boot.web.client.RootUriTemplateHandler
org.springframework.boot.test.web.client.LocalHostUriTemplateHandler
実装されたすべてのインターフェース:
UriTemplateHandler

public class LocalHostUriTemplateHandler extends RootUriTemplateHandler
UriTemplateHandler は、相対 URI に localhost:${local.server.port} を自動的にプレフィックスします。
導入:
1.4.0
作成者:
Phillip Webb, Andy Wilkinson, Edd ú Mel é ndez, Madhura Bhave
  • コンストラクターの詳細

    • LocalHostUriTemplateHandler

      public LocalHostUriTemplateHandler(Environment environment)
      指定された environment を使用して http URI を生成し、コンテキストパスとポートを決定する新しい LocalHostUriTemplateHandler を作成します。
      パラメーター:
      environment - ポートを決定するために使用される環境
    • LocalHostUriTemplateHandler

      public LocalHostUriTemplateHandler(Environment environment, StringSE scheme)
      指定された scheme で URI を生成する新しい LocalHostUriTemplateHandler を作成し、指定された environment を使用してコンテキストパスとポートを決定します。
      パラメーター:
      environment - ポートを決定するために使用される環境
      scheme - ルートウリのスキーム
      導入:
      1.4.1
    • LocalHostUriTemplateHandler

      public LocalHostUriTemplateHandler(Environment environment, StringSE scheme, UriTemplateHandler handler)
      指定された scheme で URI を生成する新しい LocalHostUriTemplateHandler を作成し、指定された environment を使用してコンテキストパスとポートを決定し、指定されたテンプレート handler に委譲します。
      パラメーター:
      environment - ポートを決定するために使用される環境
      scheme - ルートウリのスキーム
      handler - デリゲートハンドラー
      導入:
      2.0.3
  • メソッドの詳細