Esempio n. 1
0
 private void logRequestEnd(PortalTransaction trans) {
   trans.logger.info(
       "["
           + trans.requestNumber
           + "] PE Version "
           + Version.get()
           + ", End Request "
           + " at "
           + CalendarUtilities.calendarToStringTime(trans.endTime)
           + ":");
   trans.logger.info("[" + trans.requestNumber + "] PE Reply: " + Str.makeReadable(trans.reply));
 }
Esempio n. 2
0
  private void logRequestStart(PortalTransaction trans) {
    trans.logger.info(
        "["
            + trans.requestNumber
            + "] PE Version "
            + Version.get()
            + ", Begin Request "
            + " at "
            + CalendarUtilities.calendarToStringTime(trans.beginTime)
            + ":");

    Enumeration paramNames = trans.request.getParameterNames();
    while (paramNames.hasMoreElements()) {
      String paramName = (String) paramNames.nextElement();
      String paramValue = trans.request.getParameter(paramName);
      trans.logger.info(
          "[" + trans.requestNumber + "] " + paramName + "=" + Str.makeReadable(paramValue));
    }
  }
Esempio n. 3
0
 private void reportVersion(PortalTransaction trans) {
   trans.reply = "<Version>" + Version.get() + "</Version>";
 }