类 RootUriTemplateHandler
java.lang.Object
cn.taketoday.web.client.config.RootUriTemplateHandler
- 所有已实现的接口:
UriTemplateHandler
UriTemplateHandler to set the root for URI that starts with '/'.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Harry Yang
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protectedRootUriTemplateHandler(UriTemplateHandler handler) RootUriTemplateHandler(String rootUri) Create a newRootUriTemplateHandlerinstance.RootUriTemplateHandler(String rootUri, UriTemplateHandler handler) Create a newRootUriTemplateHandlerinstance. -
方法概要
修饰符和类型方法说明static RootUriTemplateHandleraddTo(RestTemplate restTemplate, String rootUri) Add aRootUriTemplateHandlerinstance to the givenRestTemplate.private StringExpand the given URI template with an array of URI variables.Expand the given URI template with a map of URI variables.Derives a newRootUriTemplateHandlerfrom this one, wrapping its delegateUriTemplateHandlerby applying the givenwrapper.
-
字段详细资料
-
rootUri
-
handler
-
-
构造器详细资料
-
RootUriTemplateHandler
-
RootUriTemplateHandler
Create a newRootUriTemplateHandlerinstance.- 参数:
rootUri- the root URI to be used to prefix relative URLs
-
RootUriTemplateHandler
Create a newRootUriTemplateHandlerinstance.- 参数:
rootUri- the root URI to be used to prefix relative URLshandler- the delegate handler
-
-
方法详细资料
-
expand
从接口复制的说明:UriTemplateHandlerExpand the given URI template with a map of URI variables.- 指定者:
expand在接口中UriTemplateHandler- 参数:
uriTemplate- the URI templateuriVariables- variable values- 返回:
- the created URI instance
-
expand
从接口复制的说明:UriTemplateHandlerExpand the given URI template with an array of URI variables.- 指定者:
expand在接口中UriTemplateHandler- 参数:
uriTemplate- the URI templateuriVariables- variable values- 返回:
- the created URI instance
-
apply
-
getRootUri
-
withHandlerWrapper
public RootUriTemplateHandler withHandlerWrapper(Function<UriTemplateHandler, UriTemplateHandler> wrapper) Derives a newRootUriTemplateHandlerfrom this one, wrapping its delegateUriTemplateHandlerby applying the givenwrapper.- 参数:
wrapper- the wrapper to apply to the delegate URI template handler- 返回:
- the new handler
-
addTo
Add aRootUriTemplateHandlerinstance to the givenRestTemplate.- 参数:
restTemplate- theRestTemplateto add the handler torootUri- the root URI- 返回:
- the added
RootUriTemplateHandler.
-