public class RestTemplates extends Object
RestTemplate
instances that are suitable for
integration tests. They are fault tolerant, and optionally can carry Basic
authentication headers. If Apache Http Client 4.3.2 or better is available
(recommended) it will be used as the client, and configured to ignore cookies and
redirects.Constructor and Description |
---|
RestTemplates() |
Modifier and Type | Method and Description |
---|---|
static RestTemplate |
get()
Basic factory method for a RestTemplate that does not follow redirects, ignores
cookies and does not throw exceptions on server side errors.
|
static RestTemplate |
get(String username,
String password)
Factory method for a secure RestTemplate with Basic authentication that does not
follow redirects, ignores cookies and does not throw exceptions on server side
errors.
|
Copyright © 2014. All rights reserved.