connSet.setQueryString("queryString");
connSet.setRetrievalRetryCount(6);
connSet.setUserAgentString("userAgentString");
resource.setGlobalConnectionSettings(connSet);
RemoteHttpProxySettingsDTO proxyHttpSet = new RemoteHttpProxySettingsDTO();
proxyHttpSet.setProxyHostname("proxyHostname1");
proxyHttpSet.setProxyPort(78);
AuthenticationSettings authSet = new AuthenticationSettings();
authSet.setNtlmDomain("ntlmDomain1");
authSet.setNtlmHost("ntlmHost1");
authSet.setPassword("password1");
authSet.setUsername("username1");
proxyHttpSet.setAuthentication(authSet);
RemoteHttpProxySettingsDTO proxyHttpsSet = new RemoteHttpProxySettingsDTO();
proxyHttpsSet.setProxyHostname("proxyHostname2");
proxyHttpsSet.setProxyPort(87);
AuthenticationSettings httpsAuthSet = new AuthenticationSettings();
httpsAuthSet.setNtlmDomain("ntlmDomain2");
httpsAuthSet.setNtlmHost("ntlmHost2");
httpsAuthSet.setPassword("password2");
httpsAuthSet.setUsername("username2");
proxyHttpsSet.setAuthentication(httpsAuthSet);
RemoteProxySettingsDTO proxySet = new RemoteProxySettingsDTO();
proxySet.setHttpProxySettings(proxyHttpSet);
proxySet.setHttpsProxySettings(proxyHttpsSet);