Code style cleanup for prov authz and beans
[dmaap/datarouter.git] / datarouter-prov / src / main / java / org / onap / dmaap / datarouter / provisioning / beans / EventLogRecord.java
index 4d0b6ac..cfdda91 100644 (file)
@@ -35,7 +35,7 @@ import org.onap.dmaap.datarouter.provisioning.BaseServlet;
  * (who made the provisioning request including the IP address, the X-DMAAP-DR-ON-BEHALF-OF\r
  * header value, and the client certificate), a what (what request was made; the method\r
  * and servlet involved), and a how (how the request was handled; the result code and\r
- * message returned to the client).  EventLogRecords are logged using log4j at the INFO level.\r
+ * message returned to the client).\r
  *\r
  * @author Robert Eby\r
  * @version $Id: EventLogRecord.java,v 1.1 2013/04/26 21:00:25 eby Exp $\r
@@ -49,12 +49,16 @@ public class EventLogRecord {
     private int result;                    // How\r
     private String message;\r
 \r
+    /**\r
+     * EventLogRecord constructor.\r
+     * @param request HTTP Request\r
+     */\r
     public EventLogRecord(HttpServletRequest request) {\r
         // Who is making the request\r
         this.ipaddr = request.getRemoteAddr();\r
-        String s = request.getHeader(BaseServlet.BEHALF_HEADER);\r
-        this.behalfof = (s != null) ? s : "";\r
-        X509Certificate certs[] = (X509Certificate[]) request.getAttribute(BaseServlet.CERT_ATTRIBUTE);\r
+        String str = request.getHeader(BaseServlet.BEHALF_HEADER);\r
+        this.behalfof = (str != null) ? str : "";\r
+        X509Certificate [] certs = (X509Certificate[]) request.getAttribute(BaseServlet.CERT_ATTRIBUTE);\r
         this.clientSubject = (certs != null && certs.length > 0)\r
                 ? certs[0].getSubjectX500Principal().getName() : "";\r
 \r