.setSoTimeout(socketTimeout)
.build())
.setDefaultCredentialsProvider(dmwsCredentialsProvider)
.setSSLSocketFactory(myFactory)
.setRequestExecutor(new HttpRequestExecutor(socketTimeout))
.setRedirectStrategy(new DefaultRedirectStrategy())
.build();
rmwsHttpClient = HttpClients.custom()
.setConnectionManager(rmwsConnectionManager)
.setMaxConnTotal(1)
.disableAutomaticRetries()
.setDefaultRequestConfig(rmwsRequestBuilder.build())
.setDefaultSocketConfig(SocketConfig.custom()
.setTcpNoDelay(true)
.setSoTimeout(socketTimeout)
.build())
.setDefaultCredentialsProvider(rmwsCredentialsProvider)
.setSSLSocketFactory(myFactory)
.setRequestExecutor(new HttpRequestExecutor(socketTimeout))
.setRedirectStrategy(new DefaultRedirectStrategy())
.build();
if (meridioManifoldCFWSUrl != null)
{
CredentialsProvider mcwsCredentialsProvider = new BasicCredentialsProvider();
RequestConfig.Builder mcwsRequestBuilder = RequestConfig.custom()
.setCircularRedirectsAllowed(true)
.setSocketTimeout(socketTimeout)
.setStaleConnectionCheckEnabled(true)
.setExpectContinueEnabled(true)
.setConnectTimeout(connectionTimeout)
.setConnectionRequestTimeout(socketTimeout);
if (domainUser != null)
{
mcwsCredentialsProvider.setCredentials(
new AuthScope(meridioManifoldCFWSUrl.getHost(),meridioManifoldCFWSUrl.getPort()),
new NTCredentials(domainUser, password, currentHost, domain));
}
// Initialize MCWS proxy
if (mcwsProxyHost != null && mcwsProxyHost.length() > 0)
{
int port = (mcwsProxyPort == null || mcwsProxyPort.length() == 0)?8080:Integer.parseInt(mcwsProxyPort);
// Configure proxy authentication
if (domainUser != null && domainUser.length() > 0)
{
mcwsCredentialsProvider.setCredentials(
new AuthScope(mcwsProxyHost, port),
new NTCredentials(domainUser, password, currentHost, domain));
}
HttpHost proxy = new HttpHost(mcwsProxyHost, port);
mcwsRequestBuilder.setProxy(proxy);
}
mcwsHttpClient = HttpClients.custom()
.setConnectionManager(mcwsConnectionManager)
.setMaxConnTotal(1)
.disableAutomaticRetries()
.setDefaultRequestConfig(mcwsRequestBuilder.build())
.setDefaultSocketConfig(SocketConfig.custom()
.setTcpNoDelay(true)
.setSoTimeout(socketTimeout)
.build())
.setDefaultCredentialsProvider(mcwsCredentialsProvider)
.setSSLSocketFactory(myFactory)
.setRequestExecutor(new HttpRequestExecutor(socketTimeout))
.setRedirectStrategy(new DefaultRedirectStrategy())
.build();
}
// Set up the stub handles
/*=================================================================