All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ua.windriver.core.ConfiguredRequestFactory Maven / Gradle / Ivy

Go to download

A Java client for the WinDriver Agent. This client allows you to automate Windows desktop applications using Java.

The newest version!
package ua.windriver.core;

import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.http.client.SimpleClientHttpRequestFactory;

public class ConfiguredRequestFactory {

    private static final Integer READ_TIMEOUT = EnvironmentProperties.HTTP_REQUEST_READ_TIMEOUT.readInteger();
    private static final Integer CONNECT_TIMEOUT = EnvironmentProperties.HTTP_REQUEST_CONNECT_TIMEOUT.readInteger();

    public static ClientHttpRequestFactory defaultFactory() {
        SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory();
        factory.setReadTimeout(READ_TIMEOUT);
        factory.setConnectTimeout(CONNECT_TIMEOUT);
        return factory;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy