Examples of DumpTable


Examples of railo.runtime.dump.DumpTable

   
    if(variable!=null) {
        pageContext.setVariable(variable,new Double(exe));
    }
    else {
      DumpTable table = new DumpTable("#ff9900","#ffcc00","#000000");
      table.appendRow(1,new SimpleDumpData(label==null?"Stopwatch":label),new SimpleDumpData(exe));
      DumpWriter writer=pageContext.getConfig().getDefaultDumpWriter(DumpWriter.DEFAULT_RICH);
      try {
       
        pageContext.forceWrite(writer.toString(pageContext,table,true));
      }
View Full Code Here

Examples of railo.runtime.dump.DumpTable

  }

  @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    if(value==null) return super.toDumpData(pageContext, maxlevel,dp);
    DumpTable table = new DumpTable("struct","#9999ff","#ccccff","#000000");
    table.setTitle("Value Struct");
    maxlevel--;
    table.appendRow(1,new SimpleDumpData("value"),DumpUtil.toDumpData(value, pageContext,maxlevel,dp));
    table.appendRow(1,new SimpleDumpData("struct"),super.toDumpData(pageContext, maxlevel,dp));
   
    return table;
  }
View Full Code Here

Examples of railo.runtime.dump.DumpTable

  }

 
  public static DumpTable toDumpTable(Struct sct,String title,PageContext pageContext, int maxlevel, DumpProperties dp) {
    Key[] keys = order(sct,CollectionUtil.keys(sct));
    DumpTable table = new DumpTable("struct","#9999ff","#ccccff","#000000");// "#9999ff","#ccccff","#000000"

    int maxkeys=dp.getMaxKeys();
    if(maxkeys < sct.size()) {
      table.setComment("Entries: "+sct.size() + " (showing top " + maxkeys + ")");
    }
    else if(sct.size()>10 && dp.getMetainfo()) {
      table.setComment("Entries: "+sct.size());
    }
    if(!StringUtil.isEmpty(title))table.setTitle(title);
    maxlevel--;
    int index=0;
    for(int i=0;i<keys.length;i++) {
      if(DumpUtil.keyValid(dp,maxlevel,keys[i])){
        if(maxkeys<=index++)break;
        table.appendRow(1,
            new SimpleDumpData(keys[i].toString()),
            DumpUtil.toDumpData(sct.get(keys[i],null),
            pageContext,maxlevel,dp));
      }
    }
View Full Code Here

Examples of railo.runtime.dump.DumpTable

   
    //table.appendRow(1, new SimpleDumpData("Execution Time (ms)"), new SimpleDumpData(exeTime));
    //table.appendRow(1, new SimpleDumpData("recordcount"), new SimpleDumpData(getRecordcount()));
    //table.appendRow(1, new SimpleDumpData("cached"), new SimpleDumpData(isCached()?"Yes":"No"));

    DumpTable recs=new DumpTable("query","#cc99cc","#ffccff","#000000");
    recs.setTitle("Query");
    if(dp.getMetainfo())recs.setComment(comment.toString());
    recs.appendRow(new DumpRow(-1,heads));
   
    // body
    DumpData[] items;
    int recordcount=query.getRecordcount();
    int columncount=query.getColumnNames().length;
    for(int i=0;i<recordcount;i++) {
      items=new DumpData[columncount+1];
      items[0]=new SimpleDumpData(i+1);
      for(int y=0;y<keys.length;y++) {
        try {
          Object o=query.getAt(keys[y],i+1);
          if(o instanceof String)items[y+1]=new SimpleDumpData(o.toString());
                    else if(o instanceof Number) items[y+1]=new SimpleDumpData(Caster.toString(((Number)o)));
                    else if(o instanceof Boolean) items[y+1]=new SimpleDumpData(((Boolean)o).booleanValue());
                    else if(o instanceof Date) items[y+1]=new SimpleDumpData(Caster.toString(o));
                    else if(o instanceof Clob) items[y+1]=new SimpleDumpData(Caster.toString(o));               
          else items[y+1]=DumpUtil.toDumpData(o, pageContext,maxlevel,dp);
        } catch (PageException e) {
          items[y+1]=new SimpleDumpData("[empty]");
        }
      }
      recs.appendRow(new DumpRow(1,items));

      if ( i == top - 1 )
        break;
    }
    if(!dp.getMetainfo()) return recs;
View Full Code Here

Examples of railo.runtime.dump.DumpTable

            this.creationDate=System.currentTimeMillis();
          return Duplicator.duplicate(value,false);
        }

    public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties) {
      DumpTable table = new DumpTable("#669999","#ccffff","#000000");
      table.setTitle("QueryCacheEntry");
      table.appendRow(1,new SimpleDumpData("Value"),DumpUtil.toDumpData(value, pageContext, maxlevel, properties));
      table.appendRow(1,new SimpleDumpData("Creation Date"),DumpUtil.toDumpData(new DateTimeImpl(creationDate,false), pageContext, maxlevel, properties));
      return table;
    }
View Full Code Here

Examples of railo.runtime.dump.DumpTable

    @Override
    public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
      try {
            return _toDumpData(pageContext,maxlevel,dp);
        } catch (Exception e) {
            DumpTable table = new DumpTable("webservice","#ccccff","#cccc00","#000000");
            table.appendRow(1,new SimpleDumpData("webservice"),new SimpleDumpData(wsdlUrl));
            return table;
        }
    }
View Full Code Here

Examples of railo.runtime.dump.DumpTable

            return table;
        }
    }
    private DumpData _toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) throws RPCException {
               
      DumpTable functions = new DumpTable("webservice","#ccccff","#cccc00","#000000");
      functions.setTitle("Web Service (WSDL/Soap)");
        if(dp.getMetainfo())functions.setComment(wsdlUrl);
        //DumpTable functions = new DumpTable("#ccccff","#cccc00","#000000");
       
       
        javax.wsdl.Service service = getWSDLService();
        Port port = getWSDLPort(service);
        Binding binding = port.getBinding();
       
    
        //Parameters parameters = null;
        //Parameter p = null;
        SymbolTable symbolTable = parser.getSymbolTable();
        BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName());
        Iterator itr = bEntry.getParameters().keySet().iterator();
        Operation tmpOp = null;
        //Operation operation = null;
        while(itr.hasNext())  {
            tmpOp = (Operation)itr.next();
            Element el = tmpOp.getDocumentationElement();
            StringBuffer doc=new StringBuffer();
            if(el!=null){
              NodeList children = XMLUtil.getChildNodes(el, Node.TEXT_NODE);
              int len=children.getLength();
              Text text;
              for(int i=0;i<len;i++){
                text=(Text) children.item(i);
                doc.append(text.getData());
              }
            }
            //parameters = (Parameters)bEntry.getParameters().get(tmpOp);
            functions.appendRow(1,
                new SimpleDumpData(tmpOp.getName()),
                _toHTMLOperation(doc.toString(),(Parameters)bEntry.getParameters().get(tmpOp)));
        }
       
        //box.appendRow(1,new SimpleDumpData(""),functions);
View Full Code Here

Examples of railo.runtime.dump.DumpTable

        //box.appendRow(1,new SimpleDumpData(""),functions);
        return functions;
    }

    private DumpData _toHTMLOperation(String doc, Parameters parameters) {
      DumpTable table = new DumpTable("#ccccff","#ccff66","#000000");
      DumpTable attributes = new DumpTable("#ccccff","#ccff66","#000000");
        String returns = "void";
        attributes.appendRow(3,new SimpleDumpData("name"),new SimpleDumpData("type"));
       
        for(int j = 0; j < parameters.list.size(); j++) {
            Parameter p = (Parameter)parameters.list.get(j);
           
            QName paramType = org.apache.axis.wsdl.toJava.Utils.getXSIType(p);
            String strType=paramType.getLocalPart();
                       
            switch(p.getMode()) {
            case Parameter.IN:
                attributes.appendRow(0,new SimpleDumpData(p.getName()),new SimpleDumpData(toRailoType(strType)));
            break;
            case Parameter.OUT:
                returns=toRailoType(strType);
            break;
            case Parameter.INOUT:
                attributes.appendRow(0,new SimpleDumpData(p.getName()),new SimpleDumpData(toRailoType(strType)));
                returns=toRailoType(strType);
               
            break;
            }
        }
View Full Code Here

Examples of railo.runtime.dump.DumpTable

    return Operator.compare(castToString(), str);
  }

  @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
    DumpTable table= (DumpTable) super.toDumpData(pageContext, maxlevel,dp);
    table.setTitle("SV Array");
    return table;
  }
View Full Code Here

Examples of railo.runtime.dump.DumpTable

 
  @Override
  public DumpData toDumpData(PageContext pageContext, int maxlevel,
      DumpProperties properties) {
   
    DumpTable dt= (DumpTable) super.toDumpData(pageContext, maxlevel, properties);
    dt.setTitle("Closure Variable Scope");
    return dt;
  }
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.