@@ -1003,21 +1003,21 @@ RestTemplate has an asynchronous counter-part: see <<rest-async-resttemplate>>.
1003
1003
1004
1004
| HEAD
1005
1005
| {api-spring-framework}/web/client/RestTemplate.html#headForHeaders(String,%20Object...)[headForHeaders(String
1006
- url, String... urlVariables )]
1006
+ url, String... uriVariables )]
1007
1007
1008
1008
| OPTIONS
1009
1009
| {api-spring-framework}/web/client/RestTemplate.html#optionsForAllow(String,%20Object...)[optionsForAllow(String
1010
- url, String... urlVariables )]
1010
+ url, String... uriVariables )]
1011
1011
1012
1012
| POST
1013
1013
| {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 )]
1015
1015
{api-spring-framework}/web/client/RestTemplate.html#postForObject(java.lang.String,%20java.lang.Object,%20java.lang.Class,%20java.lang.String...)[postForObject(String
1016
1016
url, Object request, Class<T> responseType, String... uriVariables)]
1017
1017
1018
1018
| PUT
1019
1019
| {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 )]
1021
1021
1022
1022
| PATCH and others
1023
1023
| {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`,
1052
1052
defaults using the `messageConverters()` bean property as would be required if using the
1053
1053
`MarshallingHttpMessageConverter` or `MappingJackson2HttpMessageConverter`.
1054
1054
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,
1057
1057
1058
1058
[source,java,indent=0]
1059
1059
[subs="verbatim,quotes"]
@@ -1062,7 +1062,7 @@ length argument or a `Map<String,String>`. For example,
1062
1062
"http://example.com/hotels/{hotel}/bookings/{booking}", String.class,"42", "21");
1063
1063
----
1064
1064
1065
- using variable length arguments and
1065
+ using variable- length arguments and
1066
1066
1067
1067
[source,java,indent=0]
1068
1068
[subs="verbatim,quotes"]
@@ -1135,9 +1135,9 @@ method is invoked.
1135
1135
[subs="verbatim,quotes"]
1136
1136
----
1137
1137
public <T> T execute(String url, HttpMethod method, RequestCallback requestCallback,
1138
- ResponseExtractor<T> responseExtractor, String... urlVariables )
1138
+ ResponseExtractor<T> responseExtractor, String... uriVariables )
1139
1139
1140
- // also has an overload with urlVariables as a Map<String, String>.
1140
+ // also has an overload with uriVariables as a Map<String, String>.
1141
1141
----
1142
1142
1143
1143
The `RequestCallback` interface is defined as
@@ -1162,7 +1162,7 @@ other method arguments.
1162
1162
For each of the main HTTP methods, the `RestTemplate` provides variants that either take
1163
1163
a String URI or `java.net.URI` as the first argument.
1164
1164
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
1166
1166
or as a `Map<String,String>`. They also assume the URL String is not encoded and needs
1167
1167
to be encoded. For example the following:
1168
1168
0 commit comments