Fixed execute -> exchange

This commit is contained in:
Arjen Poutsma 2010-07-26 08:00:43 +00:00
parent f90125f984
commit 8519a2d705
1 changed files with 2 additions and 2 deletions

View File

@ -1495,11 +1495,11 @@ URI location = template.postForLocation(uri, booking, "1");
<title>Dealing with request and response headers</title>
<para>Besides the methods described above, the <classname>RestTemplate</classname>
also has the <methodname>execute</methodname> method, which can be
also has the <methodname>exchange</methodname> method, which can be
used for arbitrary HTTP method execution based on the <classname>HttpEntity</classname>
class.</para>
<para>Perhaps most importantly, the <methodname>execute</methodname>
<para>Perhaps most importantly, the <methodname>exchange</methodname>
method can be used to add request headers and read response headers.
For example:</para>