Package org.baeldung.client

Examples of org.baeldung.client.HttpComponentsClientHttpRequestFactoryDigestAuth


    @Bean
    public RestTemplate restTemplate() {
        final HttpHost host = new HttpHost("localhost", 8080, "http");
        final CloseableHttpClient client = HttpClientBuilder.create().setDefaultCredentialsProvider(provider()).useSystemProperties().build();

        final HttpComponentsClientHttpRequestFactory requestFactory = new HttpComponentsClientHttpRequestFactoryDigestAuth(host, client);
        final RestTemplate restTemplate = new RestTemplate(requestFactory);

        final int timeout = 5;
        configureTimeouts(requestFactory, timeout);
View Full Code Here

TOP

Related Classes of org.baeldung.client.HttpComponentsClientHttpRequestFactoryDigestAuth

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.