Package railo.runtime.dump

Examples of railo.runtime.dump.SimpleDumpData


      try {
        o = getE(i);
      }
      catch (Exception e) {}

      table.appendRow( 1, new SimpleDumpData(i), DumpUtil.toDumpData(o, pageContext, maxlevel, dp) );

      if ( i == top )
        break;
    }
View Full Code Here


      key=it.next();//it.next();
     
      if(DumpUtil.keyValid(dp, maxlevel,key)){
        if(maxkeys<=index++)break;
        htmlBox.appendRow(3,
            new SimpleDumpData(key.getString()),
            new SimpleDumpData(++count),
            DumpUtil.toDumpData(get(key,null),
            pageContext,maxlevel,dp));
      }
    }
    return htmlBox;
View Full Code Here

      DumpProperties properties=new DumpProperties((int)maxLevel,setShow,setHide,(int)keys,metainfo,showUDFs);
      DumpData dd = DumpUtil.toDumpData(object, pc,(int)maxLevel,properties);
     
      if(!StringUtil.isEmpty(label)) {
        DumpTable table=new DumpTable("#ffffff","#cccccc","#000000");
        table.appendRow(1,new SimpleDumpData(label));
        //table.appendRow(1,new SimpleDumpData(getContext()));
        table.appendRow(0,dd);
        dd=table;
      }
     
View Full Code Here

       
        // udf name
        udf = new DumpTable("udf","#66ccff","#ccffff","#000000");
        arg = new DumpTable("udf","#66ccff","#ccffff","#000000");
       
        cfc.appendRow(1, new SimpleDumpData(e.getKey().getString()),udf);
       
        // args
        args = Caster.toArray(val.get(KeyConstants._arguments));
        udf.appendRow(1,new SimpleDumpData("arguments"),arg);
        arg.appendRow(7,new SimpleDumpData("name"),new SimpleDumpData("required"),new SimpleDumpData("type"));
        Iterator<Object> ait = args.valueIterator();
        while(ait.hasNext()){
          a=Caster.toStruct(ait.next());
          arg.appendRow(0,
              new SimpleDumpData(Caster.toString(a.get(KeyConstants._name))),
              new SimpleDumpData(Caster.toString(a.get(KeyConstants._required))),
              new SimpleDumpData(Caster.toString(a.get(KeyConstants._type))));
         
        }

        // return type
        udf.appendRow(1,new SimpleDumpData("return type"),new SimpleDumpData(Caster.toString(val.get(KeyConstants._returntype))));
       
       
        /*
        cfc.appendRow(new DumpRow(0,new DumpData[]{
            new SimpleDumpData(arg.getDisplayName()),
View Full Code Here

      DumpTable htmlBox = new DumpTable("exception","#ff9900","#FFCC00","#000000");
    htmlBox.setTitle("Railo ["+Info.getVersionAsString()+"] - Error ("+StringUtil.ucFirst(getTypeAsString())+")");
   
   
    // Message
    htmlBox.appendRow(1,new SimpleDumpData("Message"),new SimpleDumpData(getMessage()));
   
    // Detail
    String detail=getDetail();
    if(!StringUtil.isEmpty(detail,true))
      htmlBox.appendRow(1,new SimpleDumpData("Detail"),new SimpleDumpData(detail));
   
    // additional
    Iterator<Key> it = additional.keyIterator();
    Collection.Key k;
    while(it.hasNext()) {
      k=it.next();
      htmlBox.appendRow(1,new SimpleDumpData(k.getString()),new SimpleDumpData(additional.get(k,"").toString()));
    }
   
    Array tagContext = getTagContext(pageContext.getConfig());
    // Context MUSTMUST
    if(tagContext.size()>0) {
      //Collection.Key[] keys=tagContext.keys();
      Iterator<Object> vit = tagContext.valueIterator();
      //Entry<Key, Object> te;
      DumpTable context=new DumpTable("#ff9900","#FFCC00","#000000");
      //context.setTitle("The Error Occurred in");
      //context.appendRow(0,new SimpleDumpData("The Error Occurred in"));
      context.appendRow(7,
          new SimpleDumpData(""),
          new SimpleDumpData("template"),
          new SimpleDumpData("line"));
      try {
        boolean first=true;
        while(vit.hasNext()) {
          Struct struct=(Struct)vit.next();
          context.appendRow(1,
              new SimpleDumpData(first?"called from ":"occurred in"),
              new SimpleDumpData(struct.get(KeyConstants._template,"")+""),
              new SimpleDumpData(Caster.toString(struct.get(KeyConstants._line,null))));
          first=false;
        }
        htmlBox.appendRow(1,new SimpleDumpData("Context"),context);
       
       
        // Code
        String strCode=((Struct)tagContext.get(1,null)).get(KeyConstants._codePrintPlain,"").toString();
        String[] arrCode = ListUtil.listToStringArray(strCode, '\n');
        arrCode=ListUtil.trim(arrCode);
        DumpTable code=new DumpTable("#ff9900","#FFCC00","#000000");
       
        for(int i=0;i<arrCode.length;i++) {
          code.appendRow(i==2?1:0,new SimpleDumpData(arrCode[i]));
        }
        htmlBox.appendRow(1,new SimpleDumpData("Code"),code);

      }
            catch (PageException e) {}
    }
   
   
    // Java Stacktrace
    String strST=getStackTraceAsString();
    String[] arrST = ListUtil.listToStringArray(strST, '\n');
    arrST=ListUtil.trim(arrST);
    DumpTable st=new DumpTable("#ff9900","#FFCC00","#000000");
   
    for(int i=0;i<arrST.length;i++) {
      st.appendRow(i==0?1:0,new SimpleDumpData(arrST[i]));
    }
    htmlBox.appendRow(1,new SimpleDumpData("Java Stacktrace"),st);

    return htmlBox;
 
View Full Code Here

TOP

Related Classes of railo.runtime.dump.SimpleDumpData

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.