@ Nonnull public RestOperations getRestOperations ( ) { final HttpClientBuilder builder = HttpClientBuilder . create ( ) ; initDefaultHttpClientBuilder ( builder ) ; httpRequestFactory = new HttpComponentsClientHttpRequestFactory ( builder . build ( ) ) ; final RestTemplate restTemplate = new RestTemplate ( messageConverters ) ; restTemplate . setRequestFactory ( httpRequestFactory ) ; return restTemplate ; }
Returns rest operations object suitable for use with the specified credentials