XmlRpcTransportFactory transportFactory = xmlRpcClient.getTransportFactory();
if (transportFactory instanceof XmlRpcSun15HttpTransportFactory) {
log.info("Going to set proxy for transport factory for " + transportFactory.getClass().getName());
XmlRpcSun15HttpTransportFactory trFact = (XmlRpcSun15HttpTransportFactory)transportFactory;
if (proxyHost != null) {
if (proxyPort == null)
proxyPort = "3128";
trFact.setProxy(proxyHost, Integer.parseInt(proxyPort));
}
if (isSSL) {
SocketUrl socketUrl = new SocketUrl(glob, xmlRpcUrl.getHostname(), xmlRpcUrl.getPort());
SSLSocketFactory ssf = socketUrl.createSocketFactorySSL(address);
if (ssf != null)
trFact.setSSLSocketFactory(ssf);
else
log.warning("The SSL Socket Factory was null but SSL is required");
}
}
else {