@Override public void startSection(final String title) { builder1.startSection(title); builder2.startSection(title); }
@Override public void debugAll(final DebugBuilder debug) { debug.startSection("Isis Context Snapshot"); debug.appendln(debugSnapshot); debug.endSection(); }
private void debug(final DebugBuilder debug, final Object object) { if (object instanceof DebuggableWithTitle) { final DebuggableWithTitle d = (DebuggableWithTitle) object; debug.startSection(d.debugTitle()); d.debugData(debug); debug.endSection(); } else { debug.appendln("no debug for " + object); } }
debug.startSection("Exception"); debug.appendException(exception); debug.endSection(); final List<String> warnings = IsisContext.getMessageBroker().getWarnings(); if (messages.size() > 0 || messages.size() > 0) { debug.startSection("Warnings/Messages"); for (final String message : messages) { debug.appendln("message", message); debug.startSection("Processing Trace"); debug.appendPreformatted(requestContext.getDebugTrace()); debug.endSection();
public void append(final DebugBuilder debug) { debug.startSection("Request"); debug.appendTitle("User"); final AuthenticationSession session = getSession(); debug.appendln("Session", session); if (session != null) { debug.appendln("Name", session.getUserName()); debug.appendln("Roles", session.getRoles()); } debug.appendTitle("context"); debug.appendln("Parent request path", requestedParentPath); debug.appendln("Requested file", requestedFile); debug.appendln("Parent resource path", resourceParentPath); debug.appendln("Resource file", resourceFile); debug.endSection(); debug.startSection("Variables"); append(debug, Scope.GLOBAL); append(debug, Scope.SESSION); append(debug, Scope.INTERACTION); append(debug, Scope.REQUEST); append(debug, Scope.ERROR); debug.endSection(); debug.startSection("Object Mapping"); objectMapping.append(debug); debug.endSection(); }
private void specification(final ObjectSpecification spec, final DebugBuilder view) { view.startSection("Summary"); view.appendln("Hash code", "#" + Integer.toHexString(spec.hashCode())); view.appendln("ID", spec.getIdentifier()); view.endSection(); view.startSection("Fields"); for (int i = 0; i < fields.size(); i++) { final ObjectAssociation field = fields.get(i); view.startSection("Actions"); for (int i = 0; i < userActions.size(); i++) { final ObjectAction action = userActions.get(i);