Class RootUriTemplateHandler
java.lang.Object
org.springframework.boot.web.client.RootUriTemplateHandler
- All Implemented Interfaces:
UriTemplateHandler
- Direct Known Subclasses:
LocalHostUriTemplateHandler,RootUriBuilderFactory
UriTemplateHandler to set the root for URI that starts with '/'.- Since:
- 1.4.0
- Author:
- Phillip Webb, Scott Frederick
-
Constructor Summary
ConstructorsModifierConstructorDescriptionRootUriTemplateHandler(String rootUri) Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.3 for removal in 3.4.0, with no replacementRootUriTemplateHandler(String rootUri, UriTemplateHandler handler) Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.3 for removal in 3.4.0, with no replacementprotectedRootUriTemplateHandler(UriTemplateHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionstatic RootUriTemplateHandleraddTo(RestTemplate restTemplate, String rootUri) Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.3 for removal in 3.4.0, with no replacementDeprecated, for removal: This API element is subject to removal in a future version.since 3.2.3 for removal in 3.4.0, with no replacement
-
Constructor Details
-
RootUriTemplateHandler
-
RootUriTemplateHandler
Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.3 for removal in 3.4.0, with no replacementCreate a newRootUriTemplateHandlerinstance.- Parameters:
rootUri- the root URI to be used to prefix relative URLs
-
RootUriTemplateHandler
@Deprecated(since="3.2.3", forRemoval=true) public RootUriTemplateHandler(String rootUri, UriTemplateHandler handler) Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.3 for removal in 3.4.0, with no replacementCreate a newRootUriTemplateHandlerinstance.- Parameters:
rootUri- the root URI to be used to prefix relative URLshandler- the handler handler
-
-
Method Details
-
expand
- Specified by:
expandin interfaceUriTemplateHandler
-
expand
- Specified by:
expandin interfaceUriTemplateHandler
-
getRootUri
-
withHandlerWrapper
@Deprecated(since="3.2.3", forRemoval=true) public RootUriTemplateHandler withHandlerWrapper(Function<UriTemplateHandler, UriTemplateHandler> wrapper) Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.3 for removal in 3.4.0, with no replacementDerives a newRootUriTemplateHandlerfrom this one, wrapping its delegateUriTemplateHandlerby applying the givenwrapper.- Parameters:
wrapper- the wrapper to apply to the delegate URI template handler- Returns:
- the new handler
- Since:
- 2.3.10
-
addTo
@Deprecated(since="3.2.3", forRemoval=true) public static RootUriTemplateHandler addTo(RestTemplate restTemplate, String rootUri) Deprecated, for removal: This API element is subject to removal in a future version.since 3.2.3 for removal in 3.4.0, with no replacementAdd aRootUriTemplateHandlerinstance to the givenRestTemplate.- Parameters:
restTemplate- theRestTemplateto add the handler torootUri- the root URI- Returns:
- the added
RootUriTemplateHandler.
-