Examples of GatewayEntry


Examples of railo.runtime.gateway.GatewayEntry

        Element[] children = ConfigWebFactory.getChildren(parent,"gateway");
        for(int i=0;i<children.length;i++) {
            String n=children[i].getAttribute("id");
          if(n!=null && n.equalsIgnoreCase(name)) {
            Map conns = ((ConfigWebImpl)config).getGatewayEngine().getEntries();
            GatewayEntry ge=(GatewayEntry) conns.get(n);
            if(ge!=null){
              ((ConfigWebImpl)config).getGatewayEngine().remove(ge);
            }
            parent.removeChild(children[i]);
        }
View Full Code Here

Examples of railo.runtime.gateway.GatewayEntry

      logLevel = configServer.getMailLogger().getLogLevel();
    if (logLevel == -1)
      logLevel = Log.LEVEL_ERROR;
    cw.setGatewayLogger(ConfigWebUtil.getLogAndSource(configServer, config, strLogger, hasAccess, logLevel));

    GatewayEntry ge;

    // cache connections
    Element[] gateways = getChildren(eGateWay, "gateway");

    // if(hasAccess) {
View Full Code Here

Examples of railo.runtime.gateway.GatewayEntry

    Map entries = ((ConfigWebImpl)config).getGatewayEngine().getEntries();
    Iterator it = entries.entrySet().iterator();
    railo.runtime.type.Query qry=
      new QueryImpl(new String[]{"class","id","custom","cfcPath","listenerCfcPath","startupMode","state","readOnly"}, 0, "entries");
        Map.Entry entry;
        GatewayEntry ge;
        //Gateway g;
        int row=0;
        while(it.hasNext()){
      row++;
        entry=(Entry) it.next();
      ge=(GatewayEntry) entry.getValue();
      //g=ge.getGateway();
          qry.addRow();
          qry.setAtEL("class", row, ge.getClassName());
          qry.setAtEL("id", row, ge.getId());
          qry.setAtEL("listenerCfcPath", row, ge.getListenerCfcPath());
          qry.setAtEL("cfcPath", row, ge.getCfcPath());
          qry.setAtEL("startupMode", row, GatewayEntryImpl.toStartup(ge.getStartupMode(),"automatic"));
          qry.setAtEL("custom", row, ge.getCustom());
          qry.setAtEL("readOnly", row, Caster.toBoolean(ge.isReadOnly()));
          qry.setAtEL("state",row,GatewayEngineImpl.toStringState(GatewayUtil.getState(ge), "failed"));
         
        }
        pageContext.setVariable(getString("admin",action,"returnVariable"),qry);
  }
View Full Code Here

Examples of railo.runtime.gateway.GatewayEntry

  private void doGetGatewayEntry() throws PageException {
       
        String id=getString("admin",action,"id");
        Map entries = ((ConfigWebImpl)config).getGatewayEngine().getEntries();
    Iterator it = entries.keySet().iterator();
    GatewayEntry ge;
    //Gateway g;
    Struct sct;
    while(it.hasNext()) {
            String key=(String)it.next();
            if(key.equalsIgnoreCase(id)) {
                ge=(GatewayEntry) entries.get(key);
                //g=ge.getGateway();
                sct=new StructImpl();
                sct.setEL("id",ge.getId());
                sct.setEL("class",ge.getClassName());
                sct.setEL("listenerCfcPath", ge.getListenerCfcPath());
              sct.setEL("cfcPath",ge.getCfcPath());
                sct.setEL("startupMode",GatewayEntryImpl.toStartup(ge.getStartupMode(),"automatic"));
                sct.setEL("custom",ge.getCustom());
                sct.setEL("readOnly",Caster.toBoolean(ge.isReadOnly()));
                sct.setEL("state",GatewayEngineImpl.toStringState(GatewayUtil.getState(ge), "failed"));
               
                pageContext.setVariable(getString("admin",action,"returnVariable"),sct);
                return;
            }
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.