package com.github.bot.curiosone.api;

import spark.Request;
import spark.Response;

/**
 * Utility class to convert requests and responses into audit logs.
 */
public class AuditUtil {
  /**
  * Default Constructor.
  */
  private AuditUtil() {}

  /**
   * Format an audit log record.
   * @param req The request object.
   * @param res The response object.
   * @return The auti log object.
   */
  public static String format(Request req, Response res) {
    StringBuilder sb = new StringBuilder();
    sb.append(req.requestMethod());
    sb.append(" " + req.url());
    sb.append(" " + req.body());
    return sb.toString();
  }
}

@@ -89,32 +89,16 @@
 %0A * 
-Utility class to c
+C
 onvert
+s
  req
@@ -134,16 +134,93 @@
 t logs.%0A
+ * Provides a public static method to format a request-response interaction.%0A
  */%0Apubl
@@ -240,16 +240,17 @@
 tUtil %7B%0A
+%0A
   /**%0A  
@@ -320,16 +320,17 @@
 * Format
+s
  an audi
@@ -433,27 +433,41 @@
 urn 
-T
+a String containing t
 he au
+di
 t
-i
  log
- object
 .%0A  

improve AuditUtil javadoc