diff --git a/spring-framework-reference/src/rest.xml b/spring-framework-reference/src/rest.xml index 5f1bc6142cf..3c8c64b6308 100644 --- a/spring-framework-reference/src/rest.xml +++ b/spring-framework-reference/src/rest.xml @@ -823,7 +823,7 @@ RestTemplate template = new RestTemplate(); Booking booking = // create booking object -URI location = template.postForLocation(uri, booking, String.class, "1"); +URI location = template.postForLocation(uri, booking, "1"); The general callback interface is @@ -910,7 +910,7 @@ URI location = template.postForLocation(uri, booking, String.class, "1"); An HttpMessageConverter implementation that can read and write form data from the HTTP request and response. By default, this converter reads and writes the media - type (application/x-www-form-urlencoded). Form data + type application/x-www-form-urlencoded. Form data is read from and written into a MultiValueMap<String, String>. @@ -955,6 +955,16 @@ URI location = template.postForLocation(uri, booking, String.class, "1"); converter supports (text/xml) and (application/xml). + +
+ BufferedImageHttpMessageConverter + + An HttpMessageConverter + implementation that can read and write + java.awt.image.BufferedImage from the HTTP + request and response. This converter reads and writes the media type + supported by the Java I/O API. +