out.print( "<h4>Details for MockResult at " + new java.util.Date( result.getTimestamp() ) + " ("
+ result.getTimeTaken() + "ms)</h4>" );
out.println( "<hr/><p><b>Request Headers</b>:</p>" );
out.print( "<table border=\"1\"><tr><td>Header</td><td>Value</td></tr>" );
StringToStringsMap headers = result.getMockRequest().getRequestHeaders();
for( String name : headers.getKeys() )
{
for( String value : headers.get( name ) )
out.println( "<tr><td>" + name + "</td><td>" + value + "</td></tr>" );
}
out.println( "</table>" );
out.println( "<hr/><b>Incoming Request</b>:<br/><pre>"
+ XmlUtils.entitize( result.getMockRequest().getRequestContent() ) + "</pre>" );
out.println( "<hr/><p><b>Response Headers</b>:</p>" );
out.print( "<table border\"1\"><tr><td>Header</td><td>Value</td></tr>" );
headers = result.getResponseHeaders();
for( String name : headers.getKeys() )
{
for( String value : headers.get( name ) )
out.println( "<tr><td>" + name + "</td><td>" + value + "</td></tr>" );
}
out.println( "</table>" );
out.println( "<hr/><b>Returned Response</b>:<pre>" + XmlUtils.entitize( result.getResponseContent() ) + "</pre>" );