Skip to content

Commit 6517c53

Browse files
committed
Consistent use of "URI variables" terminology
Issue: SPR-14969
1 parent 11ff03e commit 6517c53

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/asciidoc/integration.adoc

+10-10
Original file line numberDiff line numberDiff line change
@@ -1003,21 +1003,21 @@ RestTemplate has an asynchronous counter-part: see <<rest-async-resttemplate>>.
10031003

10041004
| HEAD
10051005
| {api-spring-framework}/web/client/RestTemplate.html#headForHeaders(String,%20Object...)[headForHeaders(String
1006-
url, String... urlVariables)]
1006+
url, String... uriVariables)]
10071007

10081008
| OPTIONS
10091009
| {api-spring-framework}/web/client/RestTemplate.html#optionsForAllow(String,%20Object...)[optionsForAllow(String
1010-
url, String... urlVariables)]
1010+
url, String... uriVariables)]
10111011

10121012
| POST
10131013
| {api-spring-framework}/web/client/RestTemplate.html#postForLocation(String,%20Object,%20Object...)[postForLocation(String
1014-
url, Object request, String... urlVariables)]
1014+
url, Object request, String... uriVariables)]
10151015
{api-spring-framework}/web/client/RestTemplate.html#postForObject(java.lang.String,%20java.lang.Object,%20java.lang.Class,%20java.lang.String...)[postForObject(String
10161016
url, Object request, Class<T> responseType, String... uriVariables)]
10171017

10181018
| PUT
10191019
| {api-spring-framework}/web/client/RestTemplate.html#put(String,%20Object,%20Object...)[put(String
1020-
url, Object request, String...urlVariables)]
1020+
url, Object request, String...uriVariables)]
10211021

10221022
| PATCH and others
10231023
| {api-spring-framework}/web/client/RestTemplate.html#exchange(java.lang.String,%20org.springframework.http.HttpMethod,%20org.springframework.http.HttpEntity,%20java.lang.Class,%20java.lang.Object...)[exchange]
@@ -1052,8 +1052,8 @@ template are `ByteArrayHttpMessageConverter`, `StringHttpMessageConverter`,
10521052
defaults using the `messageConverters()` bean property as would be required if using the
10531053
`MarshallingHttpMessageConverter` or `MappingJackson2HttpMessageConverter`.
10541054

1055-
Each method takes URI template arguments in two forms, either as a `String` variable
1056-
length argument or a `Map<String,String>`. For example,
1055+
Each method takes URI template arguments in two forms, either as a `String`
1056+
variable-length argument or a `Map<String,String>`. For example,
10571057

10581058
[source,java,indent=0]
10591059
[subs="verbatim,quotes"]
@@ -1062,7 +1062,7 @@ length argument or a `Map<String,String>`. For example,
10621062
"http://example.com/hotels/{hotel}/bookings/{booking}", String.class,"42", "21");
10631063
----
10641064

1065-
using variable length arguments and
1065+
using variable-length arguments and
10661066

10671067
[source,java,indent=0]
10681068
[subs="verbatim,quotes"]
@@ -1135,9 +1135,9 @@ method is invoked.
11351135
[subs="verbatim,quotes"]
11361136
----
11371137
public <T> T execute(String url, HttpMethod method, RequestCallback requestCallback,
1138-
ResponseExtractor<T> responseExtractor, String... urlVariables)
1138+
ResponseExtractor<T> responseExtractor, String... uriVariables)
11391139
1140-
// also has an overload with urlVariables as a Map<String, String>.
1140+
// also has an overload with uriVariables as a Map<String, String>.
11411141
----
11421142

11431143
The `RequestCallback` interface is defined as
@@ -1162,7 +1162,7 @@ other method arguments.
11621162
For each of the main HTTP methods, the `RestTemplate` provides variants that either take
11631163
a String URI or `java.net.URI` as the first argument.
11641164

1165-
The String URI variants accept template arguments as a String variable length argument
1165+
The String URI variants accept template arguments as a String variable-length argument
11661166
or as a `Map<String,String>`. They also assume the URL String is not encoded and needs
11671167
to be encoded. For example the following:
11681168

0 commit comments

Comments
 (0)