@@ -149,9 +149,13 @@ <T> ResponseEntity<T> getForEntity(String url, Class<T> responseType, Map<String
149
149
* the {@code Location} header. This header typically indicates where the new resource is stored.
150
150
* <p>URI Template variables are expanded using the given URI variables, if any.
151
151
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
152
- * add additional HTTP headers to the request. The body of the entity, or {@code request} itself,
153
- * can be a {@link org.springframework.http.client.MultipartBodyBuilder MultiValueMap} to
154
- * simulate a multipart from submission.
152
+ * add additional HTTP headers to the request.
153
+ * <p>The body of the entity, or {@code request} itself, can be a
154
+ * {@link org.springframework.util.MultiValueMap MultiValueMap} to create a multipart request.
155
+ * The values in the {@code MultiValueMap} can be any Object representing the body of the part,
156
+ * or an {@link org.springframework.http.HttpEntity HttpEntity} representing a part with body
157
+ * and headers. The {@code MultiValueMap} can be built conveniently using
158
+ * {@link org.springframework.http.client.MultipartBodyBuilder MultipartBodyBuilder}.
155
159
* @param url the URL
156
160
* @param request the Object to be POSTed (may be {@code null})
157
161
* @param uriVariables the variables to expand the template
@@ -166,9 +170,13 @@ <T> ResponseEntity<T> getForEntity(String url, Class<T> responseType, Map<String
166
170
* the {@code Location} header. This header typically indicates where the new resource is stored.
167
171
* <p>URI Template variables are expanded using the given map.
168
172
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
169
- * add additional HTTP headers to the request. The body of the entity, or {@code request} itself,
170
- * can be a {@link org.springframework.http.client.MultipartBodyBuilder MultiValueMap} to
171
- * simulate a multipart from submission.
173
+ * add additional HTTP headers to the request
174
+ * <p>The body of the entity, or {@code request} itself, can be a
175
+ * {@link org.springframework.util.MultiValueMap MultiValueMap} to create a multipart request.
176
+ * The values in the {@code MultiValueMap} can be any Object representing the body of the part,
177
+ * or an {@link org.springframework.http.HttpEntity HttpEntity} representing a part with body
178
+ * and headers. The {@code MultiValueMap} can be built conveniently using
179
+ * {@link org.springframework.http.client.MultipartBodyBuilder MultipartBodyBuilder}.
172
180
* @param url the URL
173
181
* @param request the Object to be POSTed (may be {@code null})
174
182
* @param uriVariables the variables to expand the template
@@ -183,9 +191,13 @@ URI postForLocation(String url, @Nullable Object request, Map<String, ?> uriVari
183
191
* Create a new resource by POSTing the given object to the URL, and returns the value of the
184
192
* {@code Location} header. This header typically indicates where the new resource is stored.
185
193
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
186
- * add additional HTTP headers to the request. The body of the entity, or {@code request} itself,
187
- * can be a {@link org.springframework.http.client.MultipartBodyBuilder MultiValueMap} to
188
- * simulate a multipart from submission.
194
+ * add additional HTTP headers to the request.
195
+ * <p>The body of the entity, or {@code request} itself, can be a
196
+ * {@link org.springframework.util.MultiValueMap MultiValueMap} to create a multipart request.
197
+ * The values in the {@code MultiValueMap} can be any Object representing the body of the part,
198
+ * or an {@link org.springframework.http.HttpEntity HttpEntity} representing a part with body
199
+ * and headers. The {@code MultiValueMap} can be built conveniently using
200
+ * {@link org.springframework.http.client.MultipartBodyBuilder MultipartBodyBuilder}.
189
201
* @param url the URL
190
202
* @param request the Object to be POSTed (may be {@code null})
191
203
* @return the value for the {@code Location} header
@@ -199,9 +211,13 @@ URI postForLocation(String url, @Nullable Object request, Map<String, ?> uriVari
199
211
* and returns the representation found in the response.
200
212
* <p>URI Template variables are expanded using the given URI variables, if any.
201
213
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
202
- * add additional HTTP headers to the request. The body of the entity, or {@code request} itself,
203
- * can be a {@link org.springframework.http.client.MultipartBodyBuilder MultiValueMap} to
204
- * simulate a multipart from submission.
214
+ * add additional HTTP headers to the request.
215
+ * <p>The body of the entity, or {@code request} itself, can be a
216
+ * {@link org.springframework.util.MultiValueMap MultiValueMap} to create a multipart request.
217
+ * The values in the {@code MultiValueMap} can be any Object representing the body of the part,
218
+ * or an {@link org.springframework.http.HttpEntity HttpEntity} representing a part with body
219
+ * and headers. The {@code MultiValueMap} can be built conveniently using
220
+ * {@link org.springframework.http.client.MultipartBodyBuilder MultipartBodyBuilder}.
205
221
* @param url the URL
206
222
* @param request the Object to be POSTed (may be {@code null})
207
223
* @param responseType the type of the return value
@@ -218,9 +234,13 @@ <T> T postForObject(String url, @Nullable Object request, Class<T> responseType,
218
234
* and returns the representation found in the response.
219
235
* <p>URI Template variables are expanded using the given map.
220
236
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
221
- * add additional HTTP headers to the request. The body of the entity, or {@code request} itself,
222
- * can be a {@link org.springframework.http.client.MultipartBodyBuilder MultiValueMap} to
223
- * simulate a multipart from submission.
237
+ * add additional HTTP headers to the request.
238
+ * <p>The body of the entity, or {@code request} itself, can be a
239
+ * {@link org.springframework.util.MultiValueMap MultiValueMap} to create a multipart request.
240
+ * The values in the {@code MultiValueMap} can be any Object representing the body of the part,
241
+ * or an {@link org.springframework.http.HttpEntity HttpEntity} representing a part with body
242
+ * and headers. The {@code MultiValueMap} can be built conveniently using
243
+ * {@link org.springframework.http.client.MultipartBodyBuilder MultipartBodyBuilder}.
224
244
* @param url the URL
225
245
* @param request the Object to be POSTed (may be {@code null})
226
246
* @param responseType the type of the return value
@@ -236,9 +256,13 @@ <T> T postForObject(String url, @Nullable Object request, Class<T> responseType,
236
256
* Create a new resource by POSTing the given object to the URL,
237
257
* and returns the representation found in the response.
238
258
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
239
- * add additional HTTP headers to the request. The body of the entity, or {@code request} itself,
240
- * can be a {@link org.springframework.http.client.MultipartBodyBuilder MultiValueMap} to
241
- * simulate a multipart from submission.
259
+ * add additional HTTP headers to the request.
260
+ * <p>The body of the entity, or {@code request} itself, can be a
261
+ * {@link org.springframework.util.MultiValueMap MultiValueMap} to create a multipart request.
262
+ * The values in the {@code MultiValueMap} can be any Object representing the body of the part,
263
+ * or an {@link org.springframework.http.HttpEntity HttpEntity} representing a part with body
264
+ * and headers. The {@code MultiValueMap} can be built conveniently using
265
+ * {@link org.springframework.http.client.MultipartBodyBuilder MultipartBodyBuilder}.
242
266
* @param url the URL
243
267
* @param request the Object to be POSTed (may be {@code null})
244
268
* @param responseType the type of the return value
@@ -253,9 +277,13 @@ <T> T postForObject(String url, @Nullable Object request, Class<T> responseType,
253
277
* and returns the response as {@link ResponseEntity}.
254
278
* <p>URI Template variables are expanded using the given URI variables, if any.
255
279
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
256
- * add additional HTTP headers to the request. The body of the entity, or {@code request} itself,
257
- * can be a {@link org.springframework.http.client.MultipartBodyBuilder MultiValueMap} to
258
- * simulate a multipart from submission.
280
+ * add additional HTTP headers to the request.
281
+ * <p>The body of the entity, or {@code request} itself, can be a
282
+ * {@link org.springframework.util.MultiValueMap MultiValueMap} to create a multipart request.
283
+ * The values in the {@code MultiValueMap} can be any Object representing the body of the part,
284
+ * or an {@link org.springframework.http.HttpEntity HttpEntity} representing a part with body
285
+ * and headers. The {@code MultiValueMap} can be built conveniently using
286
+ * {@link org.springframework.http.client.MultipartBodyBuilder MultipartBodyBuilder}.
259
287
* @param url the URL
260
288
* @param request the Object to be POSTed (may be {@code null})
261
289
* @param uriVariables the variables to expand the template
@@ -271,9 +299,13 @@ <T> ResponseEntity<T> postForEntity(String url, @Nullable Object request, Class<
271
299
* and returns the response as {@link HttpEntity}.
272
300
* <p>URI Template variables are expanded using the given map.
273
301
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
274
- * add additional HTTP headers to the request. The body of the entity, or {@code request} itself,
275
- * can be a {@link org.springframework.http.client.MultipartBodyBuilder MultiValueMap} to
276
- * simulate a multipart from submission.
302
+ * add additional HTTP headers to the request.
303
+ * <p>The body of the entity, or {@code request} itself, can be a
304
+ * {@link org.springframework.util.MultiValueMap MultiValueMap} to create a multipart request.
305
+ * The values in the {@code MultiValueMap} can be any Object representing the body of the part,
306
+ * or an {@link org.springframework.http.HttpEntity HttpEntity} representing a part with body
307
+ * and headers. The {@code MultiValueMap} can be built conveniently using
308
+ * {@link org.springframework.http.client.MultipartBodyBuilder MultipartBodyBuilder}.
277
309
* @param url the URL
278
310
* @param request the Object to be POSTed (may be {@code null})
279
311
* @param uriVariables the variables to expand the template
@@ -288,9 +320,13 @@ <T> ResponseEntity<T> postForEntity(String url, @Nullable Object request, Class<
288
320
* Create a new resource by POSTing the given object to the URL,
289
321
* and returns the response as {@link ResponseEntity}.
290
322
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
291
- * add additional HTTP headers to the request. The body of the entity, or {@code request} itself,
292
- * can be a {@link org.springframework.http.client.MultipartBodyBuilder MultiValueMap} to
293
- * simulate a multipart from submission.
323
+ * add additional HTTP headers to the request.
324
+ * <p>The body of the entity, or {@code request} itself, can be a
325
+ * {@link org.springframework.util.MultiValueMap MultiValueMap} to create a multipart request.
326
+ * The values in the {@code MultiValueMap} can be any Object representing the body of the part,
327
+ * or an {@link org.springframework.http.HttpEntity HttpEntity} representing a part with body
328
+ * and headers. The {@code MultiValueMap} can be built conveniently using
329
+ * {@link org.springframework.http.client.MultipartBodyBuilder MultipartBodyBuilder}.
294
330
* @param url the URL
295
331
* @param request the Object to be POSTed (may be {@code null})
296
332
* @return the converted object
0 commit comments