/** * convert to a string representation (for printing). * * @param indentation * int to set * @return String string representation of object (for printing). */ public String debugDump(int indentation) { stringRepresentation = ""; String indent = new Indentation(indentation).getIndentation(); String className = this.getClass().getName(); sprint(indent + className); sprint(indent + "{"); for (Iterator<HDR> it = hlist.iterator(); it.hasNext();) { HDR sipHeader = (HDR) it.next(); sprint(indent + sipHeader.debugDump()); } sprint(indent + "}"); return stringRepresentation; }
&& fieldName.compareTo("headers") != 0) { sprint(fieldName + Separators.EQUALS); sprint(((SIPHeader) f.get(this)).debugDump());