Update info on RestTemplate related to 401 status code

Issue: SPR-9367
master
Rossen Stoyanchev 12 years ago
parent 0829cbfdd3
commit 24ffa5a706
  1. 6
      src/reference/docbook/remoting.xml

@ -1401,6 +1401,12 @@ String result =
can in turn be configured with credentials information or connection can in turn be configured with credentials information or connection
pooling functionality.</para> pooling functionality.</para>
<tip><para>Note that the <literal>java.net</literal> implementation for
HTTP requests may raise an exception when accessing the status of a response
that represents an error (e.g. 401). If this is an issue, switch to
<classname>HttpComponentsClientHttpRequestFactory</classname> instead.
</para></tip>
<para>The previous example using Apache HttpComponents <para>The previous example using Apache HttpComponents
<classname>HttpClient</classname> directly rewritten to use the <classname>HttpClient</classname> directly rewritten to use the
<classname>RestTemplate</classname> is shown below</para> <classname>RestTemplate</classname> is shown below</para>

Loading…
Cancel
Save