\r
/**\r
* This class is used to log provisioning server events. Each event consists of a who\r
- * (who made the provisioning request including the IP address, the X-ATT-DR-ON-BEHALF-OF\r
+ * (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
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