|
|
|
@ -202,9 +202,12 @@ public class RestTemplate extends InterceptingHttpAccessor implements RestOperat
@@ -202,9 +202,12 @@ public class RestTemplate extends InterceptingHttpAccessor implements RestOperat
|
|
|
|
|
*/ |
|
|
|
|
public void setMessageConverters(List<HttpMessageConverter<?>> messageConverters) { |
|
|
|
|
Assert.notEmpty(messageConverters, "'messageConverters' must not be empty"); |
|
|
|
|
// Take getMessageConverters() List as-is when passed in here
|
|
|
|
|
if (this.messageConverters != messageConverters) { |
|
|
|
|
this.messageConverters.clear(); |
|
|
|
|
this.messageConverters.addAll(messageConverters); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Return the message body converters. |
|
|
|
|