@@ -314,13 +314,18 @@ <T> ResponseEntity<T> postForEntity(String url, Object request, Class<T> respons
314
314
* <p>URI Template variables are expanded using the given URI variables, if any.
315
315
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
316
316
* add additional HTTP headers to the request.
317
+ * <p><b>NOTE: The standard JDK HTTP library does not support HTTP PATCH.
318
+ * You need to use the Apache HttpComponents or OkHttp request factory.</b>
317
319
* @param url the URL
318
320
* @param request the object to be PATCHed (may be {@code null})
319
321
* @param responseType the type of the return value
320
322
* @param uriVariables the variables to expand the template
321
323
* @return the converted object
322
324
* @since 4.3.5
323
325
* @see HttpEntity
326
+ * @see RestTemplate#setRequestFactory
327
+ * @see org.springframework.http.client.HttpComponentsAsyncClientHttpRequestFactory
328
+ * @see org.springframework.http.client.OkHttp3ClientHttpRequestFactory
324
329
*/
325
330
<T > T patchForObject (String url , Object request , Class <T > responseType , Object ... uriVariables )
326
331
throws RestClientException ;
@@ -331,13 +336,18 @@ <T> T patchForObject(String url, Object request, Class<T> responseType, Object..
331
336
* <p>URI Template variables are expanded using the given map.
332
337
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
333
338
* add additional HTTP headers to the request.
339
+ * <p><b>NOTE: The standard JDK HTTP library does not support HTTP PATCH.
340
+ * You need to use the Apache HttpComponents or OkHttp request factory.</b>
334
341
* @param url the URL
335
342
* @param request the object to be PATCHed (may be {@code null})
336
343
* @param responseType the type of the return value
337
344
* @param uriVariables the variables to expand the template
338
345
* @return the converted object
339
346
* @since 4.3.5
340
347
* @see HttpEntity
348
+ * @see RestTemplate#setRequestFactory
349
+ * @see org.springframework.http.client.HttpComponentsAsyncClientHttpRequestFactory
350
+ * @see org.springframework.http.client.OkHttp3ClientHttpRequestFactory
341
351
*/
342
352
<T > T patchForObject (String url , Object request , Class <T > responseType , Map <String , ?> uriVariables )
343
353
throws RestClientException ;
@@ -347,12 +357,17 @@ <T> T patchForObject(String url, Object request, Class<T> responseType, Map<Stri
347
357
* and return the representation found in the response.
348
358
* <p>The {@code request} parameter can be a {@link HttpEntity} in order to
349
359
* add additional HTTP headers to the request.
360
+ * <p><b>NOTE: The standard JDK HTTP library does not support HTTP PATCH.
361
+ * You need to use the Apache HttpComponents or OkHttp request factory.</b>
350
362
* @param url the URL
351
363
* @param request the object to be PATCHed (may be {@code null})
352
364
* @param responseType the type of the return value
353
365
* @return the converted object
354
366
* @since 4.3.5
355
367
* @see HttpEntity
368
+ * @see RestTemplate#setRequestFactory
369
+ * @see org.springframework.http.client.HttpComponentsAsyncClientHttpRequestFactory
370
+ * @see org.springframework.http.client.OkHttp3ClientHttpRequestFactory
356
371
*/
357
372
<T > T patchForObject (URI url , Object request , Class <T > responseType ) throws RestClientException ;
358
373
0 commit comments