tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/tester/src/tester/org/apache/tester SessionBean.java
Date Thu, 31 May 2001 22:08:42 GMT
craigmcc    01/05/31 15:08:42

  Modified:    tester/src/tester/org/apache/tester SessionBean.java
  Log:
  Present a more useful rendering of itself when toString() is called.
  
  Revision  Changes    Path
  1.3       +19 -1     jakarta-tomcat-4.0/tester/src/tester/org/apache/tester/SessionBean.java
  
  Index: SessionBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/tester/src/tester/org/apache/tester/SessionBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SessionBean.java	2001/02/06 17:16:24	1.2
  +++ SessionBean.java	2001/05/31 22:08:41	1.3
  @@ -70,7 +70,7 @@
    * so that instances can be saved and restored across server restarts.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.2 $ $Date: 2001/02/06 17:16:24 $
  + * @version $Revision: 1.3 $ $Date: 2001/05/31 22:08:41 $
    */
   
   public class SessionBean implements
  @@ -105,6 +105,24 @@
   
       public void setStringProperty(String stringProperty) {
           this.stringProperty = stringProperty;
  +    }
  +
  +
  +    // --------------------------------------------------------- Public Methods
  +
  +
  +    /**
  +     * Return a string representation of this bean.
  +     */
  +    public String toString() {
  +
  +        StringBuffer sb = new StringBuffer("SessionBean[lifecycle=");
  +        sb.append(this.lifecycle);
  +        sb.append(",stringProperty=");
  +        sb.append(this.stringProperty);
  +        sb.append("]");
  +        return (sb.toString());
  +
       }
   
   
  
  
  

Mime
View raw message