You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2004/01/19 22:29:06 UTC

cvs commit: jakarta-tapestry/framework/src/org/apache/tapestry/engine RequestCycle.java

hlship      2004/01/19 13:29:06

  Modified:    framework/src/org/apache/tapestry/engine RequestCycle.java
  Log:
  Add useful toString() method to RequestCycle.
  
  Revision  Changes    Path
  1.11      +27 -2     jakarta-tapestry/framework/src/org/apache/tapestry/engine/RequestCycle.java
  
  Index: RequestCycle.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tapestry/framework/src/org/apache/tapestry/engine/RequestCycle.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- RequestCycle.java	17 Oct 2003 18:53:51 -0000	1.10
  +++ RequestCycle.java	19 Jan 2004 21:29:05 -0000	1.11
  @@ -1,7 +1,7 @@
   /* ====================================================================
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2000-2003 The Apache Software Foundation.  All rights
  + * Copyright (c) 2000-2004 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -61,6 +61,7 @@
   
   import javax.servlet.http.HttpServletResponse;
   
  +import org.apache.commons.lang.builder.ToStringBuilder;
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
   import org.apache.tapestry.ApplicationRuntimeException;
  @@ -733,5 +734,29 @@
               page);
   
           setPage(page);
  +    }
  +
  +    /**
  +     * @since 3.0
  +     */
  +    public String toString()
  +    {
  +        ToStringBuilder b = new ToStringBuilder(this);
  +
  +        b.append("rewinding", _rewinding);
  +
  +        if (_service != null)
  +            b.append("service", _service.getName());
  +
  +        b.append("serviceParameters", _serviceParameters);
  +
  +        if (_loadedPages != null)
  +            b.append("loadedPages", _loadedPages.keySet());
  +
  +        b.append("attributes", _attributes);
  +        b.append("targetActionId", _targetActionId);
  +        b.append("targetComponent", _targetComponent);
  +
  +        return b.toString();
       }
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org