Update Javadoc on uriTemplateHandler property

Issue: SPR-16419
This commit is contained in:
Rossen Stoyanchev 2018-01-29 21:53:22 -05:00
parent 5ff724968d
commit 4f28c28287
2 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -301,9 +301,15 @@ public class RestTemplate extends InterceptingHttpAccessor implements RestOperat
* Configure the {@link UriTemplateHandler} to use to expand URI templates.
* By default the {@link DefaultUriBuilderFactory} is used which relies on
* Spring's URI template support and exposes several useful properties that
* customize its behavior for encoding and for prepending a common base URL.
* customize its behavior for encoding and for pre-pending a common base URL.
* An alternative implementation may be used to plug an external URI
* template library.
* <p><strong>Note:</strong> if switching from
* {@link org.springframework.web.util.DefaultUriTemplateHandler
* DefaultUriTemplateHandler} (deprecated in 4.3) to
* {@link DefaultUriBuilderFactory} keep in mind that the
* {@link DefaultUriBuilderFactory} has a different default for the
* {@code parsePath} property (from false to true).
* @param handler the URI template handler to use
*/
public void setUriTemplateHandler(UriTemplateHandler handler) {

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2017 the original author or authors.
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -33,7 +33,10 @@ import java.util.Map;
*
* @author Rossen Stoyanchev
* @since 4.2
* @deprecated as of 5.0 in favor of {@link DefaultUriBuilderFactory}
* @deprecated as of 5.0 in favor of {@link DefaultUriBuilderFactory}.
* <p><strong>Note:</strong> {@link DefaultUriBuilderFactory} has a different
* default for the {@link #setParsePath(boolean) parsePath} property (from
* false to true).
*/
@Deprecated
public class DefaultUriTemplateHandler extends AbstractUriTemplateHandler {