Examples of ProxyDataImpl


Examples of railo.runtime.net.proxy.ProxyDataImpl

      String proxyServer=getString("proxyServer",null);
      if(!StringUtil.isEmpty(proxyServer)) {
        String proxyUsername=getString("proxyUsername",null);
        String proxyPassword=getString("proxyPassword",null);
        int proxyPort = getInt("proxyPort",-1);
        pd=new ProxyDataImpl();
          pd.setServer(proxyServer);
          if(!StringUtil.isEmpty(proxyUsername))pd.setUsername(proxyUsername);
          if(!StringUtil.isEmpty(proxyPassword))pd.setPassword(proxyPassword);
          if(proxyPort!=-1)pd.setPort(proxyPort);
     
View Full Code Here

Examples of railo.runtime.net.proxy.ProxyDataImpl

      String pUser = client.getAttribute("proxy-username");
      String pPass = ConfigWebFactory.decrypt(client.getAttribute("proxy-password"));

      ProxyData pd = null;
      if (!StringUtil.isEmpty(pUrl, true)) {
        pd = new ProxyDataImpl();
        pd.setServer(pUrl);
        if (!StringUtil.isEmpty(pUser)) {
          pd.setUsername(pUser);
          pd.setPassword(pPass);
        }
View Full Code Here

Examples of railo.runtime.net.proxy.ProxyDataImpl

            }
        // Webservice
            if(type.equals("webservice") || type.equals("wsdl")) {
              String user=null;
              String pass=null;
              ProxyDataImpl proxy=null;
              if(context!=null){
                Struct args=(serverName!=null)?Caster.toStruct(serverName):Caster.toStruct(context);
                // basic security
                user=Caster.toString(args.get("username",null));
                pass=Caster.toString(args.get("password",null));
               
                // proxy
                String proxyServer=Caster.toString(args.get("proxyServer",null));
                String proxyPort=Caster.toString(args.get("proxyPort",null));
                String proxyUser=Caster.toString(args.get("proxyUser",null));
                if(StringUtil.isEmpty(proxyUser)) proxyUser=Caster.toString(args.get("proxyUsername",null));
                String proxyPassword=Caster.toString(args.get("proxyPassword",null));
               
                if(!StringUtil.isEmpty(proxyServer)){
                  proxy=new ProxyDataImpl(proxyServer,Caster.toIntValue(proxyPort,-1),proxyUser,proxyPassword);
                }               
               
              }
                return doWebService(pc,className,user,pass,proxy);
            }
            if(type.equals("http")) {
              String user=null;
              String pass=null;
              ProxyDataImpl proxy=null;
              if(context!=null){
                Struct args=(serverName!=null)?Caster.toStruct(serverName):Caster.toStruct(context);
                // basic security
                user=Caster.toString(args.get("username",null));
                pass=Caster.toString(args.get("password",null));
               
                // proxy
                String proxyServer=Caster.toString(args.get("proxyServer",null));
                String proxyPort=Caster.toString(args.get("proxyPort",null));
                String proxyUser=Caster.toString(args.get("proxyUser",null));
                if(StringUtil.isEmpty(proxyUser)) proxyUser=Caster.toString(args.get("proxyUsername",null));
                String proxyPassword=Caster.toString(args.get("proxyPassword",null));
               
                if(!StringUtil.isEmpty(proxyServer)){
                  proxy=new ProxyDataImpl(proxyServer,Caster.toIntValue(proxyPort,-1),proxyUser,proxyPassword);
                }               
               
              }
                return doHTTP(pc,className,user,pass,proxy);
            }
View Full Code Here

Examples of railo.runtime.net.proxy.ProxyDataImpl

  @Override
  public int doStartTag() throws PageException {
    if(source instanceof HTTPResource) {
      HTTPResource httpSource = (HTTPResource)source;
      if(!StringUtil.isEmpty(proxyServer,true)){
        ProxyData data=new ProxyDataImpl(proxyServer,proxyPort,proxyUser,proxyPassword);
        httpSource.setProxyData(data);
      }
      if(!StringUtil.isEmpty(userAgent))
        httpSource.setUserAgent(userAgent);
      if(timeout>-1)httpSource.setTimeout(timeout*1000);
 
View Full Code Here

Examples of railo.runtime.net.proxy.ProxyDataImpl

        else if(type.equals("webservice")) {
            checkAccess(pageContext,type);
            checkWebservice();
            ProxyData proxy=null;
            if(proxyServer!=null){
              proxy=new ProxyDataImpl(proxyServer,proxyPort,proxyUser,proxyPassword);
            }
            pageContext.setVariable(name,CreateObject.doWebService(pageContext,webservice,username,password,proxy));
        }
    else {
      if(type==null) throw new ApplicationException("to less attributes defined for tag object");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.