类 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
-
字段概要
字段 -
构造器概要
构造器构造器说明LocalHostUriTemplateHandler(cn.taketoday.core.env.Environment environment) Create a newLocalHostUriTemplateHandlerthat will generatehttpURIs using the givenenvironmentto determine the context path and port.LocalHostUriTemplateHandler(cn.taketoday.core.env.Environment environment, String scheme) Create a newLocalHostUriTemplateHandlerthat will generate URIs with the givenschemeand use the givenenvironmentto determine the context-path and port.LocalHostUriTemplateHandler(cn.taketoday.core.env.Environment environment, String scheme, cn.taketoday.web.util.UriTemplateHandler handler) Create a newLocalHostUriTemplateHandlerthat will generate URIs with the givenscheme, use the givenenvironmentto determine the context-path and port and delegate to the given templatehandler. -
方法概要
从类继承的方法 cn.taketoday.web.client.config.RootUriTemplateHandler
addTo, expand, expand, withHandlerWrapper
-
字段详细资料
-
PREFIX
- 另请参阅:
-
environment
private final cn.taketoday.core.env.Environment environment -
scheme
-
-
构造器详细资料
-
LocalHostUriTemplateHandler
public LocalHostUriTemplateHandler(cn.taketoday.core.env.Environment environment) Create a newLocalHostUriTemplateHandlerthat will generatehttpURIs using the givenenvironmentto determine the context path and port.- 参数:
environment- the environment used to determine the port
-
LocalHostUriTemplateHandler
Create a newLocalHostUriTemplateHandlerthat will generate URIs with the givenschemeand use the givenenvironmentto determine the context-path and port.- 参数:
environment- the environment used to determine the portscheme- 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 newLocalHostUriTemplateHandlerthat will generate URIs with the givenscheme, use the givenenvironmentto determine the context-path and port and delegate to the given templatehandler.- 参数:
environment- the environment used to determine the portscheme- the scheme of the root urihandler- the delegate handler
-
-
方法详细资料
-
getRootUri
- 覆盖:
getRootUri在类中cn.taketoday.web.client.config.RootUriTemplateHandler
-