RestTemplate provides the ability to call synchronous HTTP requests. It provides wrapper APIs on top of a JDK HTTUrlConnection, Apache HttpComponents, and others. It provides the HTTP methods with different signatures, and the generic functions execute and exchange that can execute any REST
requests and different utility methods.
HTTP methods are available with the following APIs (please refer to the documentation—https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html—for more details):
- delete() with different parameter sets for HTTP method DELETE
- getForObject() and getForEntity() with different parameter sets for HTTP method GET
- patchForObject() with different ...