use of lucee.runtime.dump.SimpleDumpData in project Lucee by lucee.
the class FTPPath method toDumpData.
@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
DumpTable table = new DumpTable("string", "#ff6600", "#ffcc99", "#000000");
table.appendRow(1, new SimpleDumpData("FTPPath"), new SimpleDumpData(toString()));
return table;
}
use of lucee.runtime.dump.SimpleDumpData in project Lucee by lucee.
the class JaxWSClient method toDumpData.
private DumpData toDumpData(BindingOperation bo) {
Map<QName, Message> messages = wsdl.getMessages();
DumpTable table = new DumpTable("#99cc99", "#ccffcc", "#000000");
DumpTable attributes = new DumpTable("#99cc99", "#ccffcc", "#000000");
String returns = "void";
attributes.appendRow(3, new SimpleDumpData("name"), new SimpleDumpData("type"));
Operation op = bo.getOperation();
// attributes
Input in = op.getInput();
Message msg = in.getMessage();
// msg=WSUtil.getMessageByLocalName(messages,bo.getBindingInput().getName());
// print.e(msg.getQName());
List<Part> parts = msg.getOrderedParts(null);
Iterator<Part> it = parts.iterator();
Part p;
QName en;
QName type;
while (it.hasNext()) {
p = it.next();
en = p.getElementName();
if (en != null) {
type = en;
Types types = wsdl.getTypes();
} else
type = p.getTypeName();
attributes.appendRow(0, new SimpleDumpData(en + ":" + p.getName()), new SimpleDumpData(toLuceeType(type)));
}
// return
msg = bo.getOperation().getOutput().getMessage();
msg = wsdl.getMessage(msg.getQName());
parts = msg.getOrderedParts(null);
it = parts.iterator();
while (it.hasNext()) {
p = it.next();
returns = toLuceeType(p.getTypeName());
}
table.appendRow(1, new SimpleDumpData("arguments"), attributes);
table.appendRow(1, new SimpleDumpData("return type"), new SimpleDumpData(returns));
return table;
}
use of lucee.runtime.dump.SimpleDumpData in project Lucee by lucee.
the class JaxWSClient method _toDumpData.
private DumpData _toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) throws RPCException {
DumpTable functions = new DumpTable("webservice", "#99cc99", "#ccffcc", "#000000");
functions.setTitle("Web Service (JAX WS)");
if (dp.getMetainfo())
functions.setComment(wsdlUrl);
Port port = WSUtil.getSoapPort(service);
Binding binding = port.getBinding();
List<BindingOperation> operations = binding.getBindingOperations();
Iterator<BindingOperation> it = operations.iterator();
BindingOperation bo;
while (it.hasNext()) {
bo = it.next();
functions.appendRow(1, new SimpleDumpData(bo.getName()), toDumpData(bo));
}
return functions;
}
use of lucee.runtime.dump.SimpleDumpData in project Lucee by lucee.
the class Stopwatch method doEndTag.
@Override
public int doEndTag() throws PageException {
long exe = (System.currentTimeMillis() - time);
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));
} catch (IOException e) {
}
}
return EVAL_PAGE;
}
use of lucee.runtime.dump.SimpleDumpData in project Lucee by lucee.
the class StructImplKey method toDumpData.
/**
* @see lucee.runtime.dump.Dumpable#toDumpData(lucee.runtime.PageContext, int)
*/
@Override
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp) {
Iterator it = _map.keySet().iterator();
DumpTable table = new DumpTable("struct", "#9999ff", "#ccccff", "#000000");
table.setTitle("Struct");
maxlevel--;
int maxkeys = dp.getMaxKeys();
int index = 0;
while (it.hasNext()) {
Object key = it.next();
if (DumpUtil.keyValid(dp, maxlevel, key.toString())) {
if (maxkeys <= index++)
break;
table.appendRow(1, new SimpleDumpData(key.toString()), DumpUtil.toDumpData(_map.get(key), pageContext, maxlevel, dp));
}
}
return table;
}
Aggregations