
ua.windriver.core.ConfiguredRequestFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of windriver-java Show documentation
Show all versions of windriver-java Show documentation
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