提交 6517c537 编写于 作者: J Juergen Hoeller

Consistent use of "URI variables" terminology

Issue: SPR-14969
上级 11ff03ed
......@@ -1003,21 +1003,21 @@ RestTemplate has an asynchronous counter-part: see <<rest-async-resttemplate>>.
| HEAD
| {api-spring-framework}/web/client/RestTemplate.html#headForHeaders(String,%20Object...)[headForHeaders(String
url, String... urlVariables)]
url, String... uriVariables)]
| OPTIONS
| {api-spring-framework}/web/client/RestTemplate.html#optionsForAllow(String,%20Object...)[optionsForAllow(String
url, String... urlVariables)]
url, String... uriVariables)]
| POST
| {api-spring-framework}/web/client/RestTemplate.html#postForLocation(String,%20Object,%20Object...)[postForLocation(String
url, Object request, String... urlVariables)]
url, Object request, String... uriVariables)]
{api-spring-framework}/web/client/RestTemplate.html#postForObject(java.lang.String,%20java.lang.Object,%20java.lang.Class,%20java.lang.String...)[postForObject(String
url, Object request, Class<T> responseType, String... uriVariables)]
| PUT
| {api-spring-framework}/web/client/RestTemplate.html#put(String,%20Object,%20Object...)[put(String
url, Object request, String...urlVariables)]
url, Object request, String...uriVariables)]
| PATCH and others
| {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`,
defaults using the `messageConverters()` bean property as would be required if using the
`MarshallingHttpMessageConverter` or `MappingJackson2HttpMessageConverter`.
Each method takes URI template arguments in two forms, either as a `String` variable
length argument or a `Map<String,String>`. For example,
Each method takes URI template arguments in two forms, either as a `String`
variable-length argument or a `Map<String,String>`. For example,
[source,java,indent=0]
[subs="verbatim,quotes"]
......@@ -1062,7 +1062,7 @@ length argument or a `Map<String,String>`. For example,
"http://example.com/hotels/{hotel}/bookings/{booking}", String.class,"42", "21");
----
using variable length arguments and
using variable-length arguments and
[source,java,indent=0]
[subs="verbatim,quotes"]
......@@ -1135,9 +1135,9 @@ method is invoked.
[subs="verbatim,quotes"]
----
public <T> T execute(String url, HttpMethod method, RequestCallback requestCallback,
ResponseExtractor<T> responseExtractor, String... urlVariables)
ResponseExtractor<T> responseExtractor, String... uriVariables)
// also has an overload with urlVariables as a Map<String, String>.
// also has an overload with uriVariables as a Map<String, String>.
----
The `RequestCallback` interface is defined as
......@@ -1162,7 +1162,7 @@ other method arguments.
For each of the main HTTP methods, the `RestTemplate` provides variants that either take
a String URI or `java.net.URI` as the first argument.
The String URI variants accept template arguments as a String variable length argument
The String URI variants accept template arguments as a String variable-length argument
or as a `Map<String,String>`. They also assume the URL String is not encoded and needs
to be encoded. For example the following:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册