类 LocalHostUriTemplateHandler

java.lang.Object
cn.taketoday.web.client.config.RootUriTemplateHandler
cn.taketoday.framework.test.web.client.LocalHostUriTemplateHandler
所有已实现的接口:
cn.taketoday.web.util.UriTemplateHandler

public class LocalHostUriTemplateHandler extends cn.taketoday.web.client.config.RootUriTemplateHandler
UriTemplateHandler will automatically prefix relative URIs with localhost:${local.server.port}.
从以下版本开始:
4.0
作者:
Phillip Webb, Andy Wilkinson, Eddú Meléndez, Madhura Bhave, Harry Yang
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final cn.taketoday.core.env.Environment
     
    private static final String
     
    private final String
     
  • 构造器概要

    构造器
    构造器
    说明
    LocalHostUriTemplateHandler(cn.taketoday.core.env.Environment environment)
    Create a new LocalHostUriTemplateHandler that will generate http URIs using the given environment to determine the context path and port.
    LocalHostUriTemplateHandler(cn.taketoday.core.env.Environment environment, String scheme)
    Create a new LocalHostUriTemplateHandler that will generate URIs with the given scheme and use the given environment to determine the context-path and port.
    LocalHostUriTemplateHandler(cn.taketoday.core.env.Environment environment, String scheme, cn.taketoday.web.util.UriTemplateHandler handler)
    Create a new LocalHostUriTemplateHandler that will generate URIs with the given scheme, use the given environment to determine the context-path and port and delegate to the given template handler.
  • 方法概要

    修饰符和类型
    方法
    说明
     

    从类继承的方法 cn.taketoday.web.client.config.RootUriTemplateHandler

    addTo, expand, expand, withHandlerWrapper

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • PREFIX

      private static final String PREFIX
      另请参阅:
    • environment

      private final cn.taketoday.core.env.Environment environment
    • scheme

      private final String scheme
  • 构造器详细资料

    • LocalHostUriTemplateHandler

      public LocalHostUriTemplateHandler(cn.taketoday.core.env.Environment environment)
      Create a new LocalHostUriTemplateHandler that will generate http URIs using the given environment to determine the context path and port.
      参数:
      environment - the environment used to determine the port
    • LocalHostUriTemplateHandler

      public LocalHostUriTemplateHandler(cn.taketoday.core.env.Environment environment, String scheme)
      Create a new LocalHostUriTemplateHandler that will generate URIs with the given scheme and use the given environment to determine the context-path and port.
      参数:
      environment - the environment used to determine the port
      scheme - the scheme of the root uri
    • LocalHostUriTemplateHandler

      public LocalHostUriTemplateHandler(cn.taketoday.core.env.Environment environment, String scheme, cn.taketoday.web.util.UriTemplateHandler handler)
      Create a new LocalHostUriTemplateHandler that will generate URIs with the given scheme, use the given environment to determine the context-path and port and delegate to the given template handler.
      参数:
      environment - the environment used to determine the port
      scheme - the scheme of the root uri
      handler - the delegate handler
  • 方法详细资料

    • getRootUri

      public String getRootUri()
      覆盖:
      getRootUri 在类中 cn.taketoday.web.client.config.RootUriTemplateHandler