public static String getResponseCodeOutput ( Response response ) { if ( response == null ) { return "" ; } StringBuilder responseOutput = new StringBuilder ( ) ; String uuid = getUUID ( ) ; responseOutput . append ( ONCLICK_TOGGLE ) . append ( uuid ) . append ( "\")'>Toggle Response Status Code</a> " ) ; responseOutput . append ( SPAN_ID ) . append ( uuid ) . append ( DISPLAY_NONE ) ; responseOutput . append ( DIV ) . append ( response . getCode ( ) ) . append ( END_DIV ) ; responseOutput . append ( END_SPAN ) ; return responseOutput . toString ( ) ; }
Takes the response code returned in the HTTP response and writes them to the output file in properly HTML formatted fashion