Resttemplate getforobject with headers. There are no pros and cons.

Resttemplate getforobject with headers. postForEntity(uri, httpEntity, ResponseClass.