Class RootUriTemplateHandler
java.lang.Object
org.springframework.boot.web.client.RootUriTemplateHandler
- All Implemented Interfaces:
org.springframework.web.util.UriTemplateHandler
- Direct Known Subclasses:
RootUriBuilderFactory
public class RootUriTemplateHandler
extends Object
implements org.springframework.web.util.UriTemplateHandler
UriTemplateHandler
to set the root for URI that starts with '/'
.- Since:
- 1.4.0
-
Constructor Summary
ModifierConstructorDescriptionRootUriTemplateHandler
(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, org.springframework.web.util.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 replacementprotected
RootUriTemplateHandler
(org.springframework.web.util.UriTemplateHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 replacementwithHandlerWrapper
(Function<org.springframework.web.util.UriTemplateHandler, org.springframework.web.util.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 replacement
-
Constructor Details
-
RootUriTemplateHandler
protected RootUriTemplateHandler(org.springframework.web.util.UriTemplateHandler handler) -
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 newRootUriTemplateHandler
instance.- Parameters:
rootUri
- the root URI to be used to prefix relative URLs
-
RootUriTemplateHandler
@Deprecated(since="3.2.3", forRemoval=true) public RootUriTemplateHandler(String rootUri, org.springframework.web.util.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 newRootUriTemplateHandler
instance.- Parameters:
rootUri
- the root URI to be used to prefix relative URLshandler
- the handler handler
-
-
Method Details
-
expand
- Specified by:
expand
in interfaceorg.springframework.web.util.UriTemplateHandler
-
expand
- Specified by:
expand
in interfaceorg.springframework.web.util.UriTemplateHandler
-
getRootUri
-
withHandlerWrapper
@Deprecated(since="3.2.3", forRemoval=true) public RootUriTemplateHandler withHandlerWrapper(Function<org.springframework.web.util.UriTemplateHandler, org.springframework.web.util.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 newRootUriTemplateHandler
from this one, wrapping its delegateUriTemplateHandler
by 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(org.springframework.web.client.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 aRootUriTemplateHandler
instance to the givenRestTemplate
.- Parameters:
restTemplate
- theRestTemplate
to add the handler torootUri
- the root URI- Returns:
- the added
RootUriTemplateHandler
.
-