cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon Cocoon.java
Date Fri, 28 Sep 2001 21:21:29 GMT
dims        01/09/28 14:21:29

  Modified:    src/org/apache/cocoon Cocoon.java
  Log:
  Add Header parameters to debug log.
  
  Revision  Changes    Path
  1.28      +21 -1     xml-cocoon2/src/org/apache/cocoon/Cocoon.java
  
  Index: Cocoon.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/Cocoon.java,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- Cocoon.java	2001/09/12 13:03:31	1.27
  +++ Cocoon.java	2001/09/28 21:21:29	1.28
  @@ -58,7 +58,7 @@
    * @author <a href="mailto:fumagalli@exoffice.com">Pierpaolo Fumagalli</a>
(Apache Software Foundation, Exoffice Technologies)
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
    * @author <a href="mailto:leo.sutic@inspireinfrastructure.com">Leo Sutic</a>
  - * @version CVS $Revision: 1.27 $ $Date: 2001/09/12 13:03:31 $
  + * @version CVS $Revision: 1.28 $ $Date: 2001/09/28 21:21:29 $
    */
   public class Cocoon
           extends AbstractLoggable
  @@ -458,6 +458,26 @@
                   msg.append("["+params[i]+"]");
                   if (i != params.length-1)
                   msg.append(", ");
  +            }
  +
  +            msg.append("'").append(lineSeparator);
  +        }
  +
  +        // log all of the header parameters
  +        Enumeration e2 = request.getHeaderNames();
  +
  +        msg.append("HEADER PARAMETERS:").append(lineSeparator).append(lineSeparator);
  +
  +        while (e2.hasMoreElements()) {
  +            String p = (String) e2.nextElement();
  +
  +            msg.append("PARAM: '").append(p).append("' ")
  +               .append("VALUES: '");
  +            Enumeration e3 = request.getHeaders(p);
  +            while(e3.hasMoreElements()) {
  +                msg.append("["+e3.nextElement()+"]");
  +                if(e3.hasMoreElements())
  +                    msg.append(", ");
               }
   
               msg.append("'").append(lineSeparator);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message