@@ -1014,21 +1014,21 @@ RestTemplate has an asynchronous counter-part: see <<rest-async-resttemplate>>.
1014
1014
1015
1015
| HEAD
1016
1016
| {api-spring-framework}/web/client/RestTemplate.html#headForHeaders(String,%20Object...)[headForHeaders(String
1017
- url, String... urlVariables )]
1017
+ url, String... uriVariables )]
1018
1018
1019
1019
| OPTIONS
1020
1020
| {api-spring-framework}/web/client/RestTemplate.html#optionsForAllow(String,%20Object...)[optionsForAllow(String
1021
- url, String... urlVariables )]
1021
+ url, String... uriVariables )]
1022
1022
1023
1023
| POST
1024
1024
| {api-spring-framework}/web/client/RestTemplate.html#postForLocation(String,%20Object,%20Object...)[postForLocation(String
1025
- url, Object request, String... urlVariables )]
1025
+ url, Object request, String... uriVariables )]
1026
1026
{api-spring-framework}/web/client/RestTemplate.html#postForObject(java.lang.String,%20java.lang.Object,%20java.lang.Class,%20java.lang.String...)[postForObject(String
1027
1027
url, Object request, Class<T> responseType, String... uriVariables)]
1028
1028
1029
1029
| PUT
1030
1030
| {api-spring-framework}/web/client/RestTemplate.html#put(String,%20Object,%20Object...)[put(String
1031
- url, Object request, String...urlVariables )]
1031
+ url, Object request, String...uriVariables )]
1032
1032
1033
1033
| PATCH and others
1034
1034
| {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]
@@ -1063,8 +1063,8 @@ template are `ByteArrayHttpMessageConverter`, `StringHttpMessageConverter`,
1063
1063
defaults using the `messageConverters()` bean property as would be required if using the
1064
1064
`MarshallingHttpMessageConverter` or `MappingJackson2HttpMessageConverter`.
1065
1065
1066
- Each method takes URI template arguments in two forms, either as a `String` variable
1067
- length argument or a `Map<String,String>`. For example,
1066
+ Each method takes URI template arguments in two forms, either as a `String`
1067
+ variable- length argument or a `Map<String,String>`. For example,
1068
1068
1069
1069
[source,java,indent=0]
1070
1070
[subs="verbatim,quotes"]
@@ -1073,7 +1073,7 @@ length argument or a `Map<String,String>`. For example,
1073
1073
"http://example.com/hotels/{hotel}/bookings/{booking}", String.class,"42", "21");
1074
1074
----
1075
1075
1076
- using variable length arguments and
1076
+ using variable- length arguments and
1077
1077
1078
1078
[source,java,indent=0]
1079
1079
[subs="verbatim,quotes"]
@@ -1146,9 +1146,9 @@ method is invoked.
1146
1146
[subs="verbatim,quotes"]
1147
1147
----
1148
1148
public <T> T execute(String url, HttpMethod method, RequestCallback requestCallback,
1149
- ResponseExtractor<T> responseExtractor, String... urlVariables )
1149
+ ResponseExtractor<T> responseExtractor, String... uriVariables )
1150
1150
1151
- // also has an overload with urlVariables as a Map<String, String>.
1151
+ // also has an overload with uriVariables as a Map<String, String>.
1152
1152
----
1153
1153
1154
1154
The `RequestCallback` interface is defined as
@@ -1173,7 +1173,7 @@ other method arguments.
1173
1173
For each of the main HTTP methods, the `RestTemplate` provides variants that either take
1174
1174
a String URI or `java.net.URI` as the first argument.
1175
1175
1176
- The String URI variants accept template arguments as a String variable length argument
1176
+ The String URI variants accept template arguments as a String variable- length argument
1177
1177
or as a `Map<String,String>`. They also assume the URL String is not encoded and needs
1178
1178
to be encoded. For example the following:
1179
1179
0 commit comments