Package org.apache.xmlrpc.client

Examples of org.apache.xmlrpc.client.XmlRpcSun15HttpTransportFactory


     
      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 {
View Full Code Here

TOP

Related Classes of org.apache.xmlrpc.client.XmlRpcSun15HttpTransportFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.