kief        01/04/08 00:55:46

  Modified:    catalina/src/share/org/apache/catalina Session.java
  Log:
  Refactoring to eliminate dependencies by StandardManager, ManagerBase,
  and StandardSession on one another: each should only depend on methods
  found in the interface definitions for Manager and Session.
  
  Added setValid and setNew to remove StandardSession's dependence on
  ManagerBase.
  
  Revision  Changes    Path
  1.3       +26 -10    
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Session.java
  
  Index: Session.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Session.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Session.java      2000/10/18 18:15:49     1.2
  +++ Session.java      2001/04/08 07:55:46     1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Session.java,v 1.2 
2000/10/18 18:15:49 craigmcc Exp $
  - * $Revision: 1.2 $
  - * $Date: 2000/10/18 18:15:49 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/Session.java,v 1.3 
2001/04/08 07:55:46 kief Exp $
  + * $Revision: 1.3 $
  + * $Date: 2001/04/08 07:55:46 $
    *
    * ====================================================================
    *
  @@ -77,7 +77,7 @@
    * between requests for a particular user of a web application.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.2 $ $Date: 2000/10/18 18:15:49 $
  + * @version $Revision: 1.3 $ $Date: 2001/04/08 07:55:46 $
    */
   
   public interface Session {
  @@ -181,6 +181,14 @@
   
   
       /**
  +     * Set the <code>isNew</code> flag for this session.
  +     *
  +     * @param isNew The new value for the <code>isNew</code> flag
  +     */
  +    public void setNew(boolean isNew);
  +
  +
  +    /**
        * Return the authenticated Principal that is associated with this Session.
        * This provides an <code>Authenticator</code> with a means to cache a
        * previously authenticated Principal, and avoid potentially expensive
  @@ -208,6 +216,20 @@
       public HttpSession getSession();
   
   
  +    /**
  +     * Set the <code>isValid</code> flag for this session.
  +     *
  +     * @param isValid The new value for the <code>isValid</code> flag
  +     */
  +    public void setValid(boolean isValid);
  +
  +
  +    /**
  +     * Return the <code>isValid</code> flag for this session.
  +     */
  +    public boolean isValid();
  +
  +
       // --------------------------------------------------------- Public Methods
   
   
  @@ -224,12 +246,6 @@
        * without triggering an exception if the session has already expired.
        */
       public void expire();
  -
  -
  -    /**
  -     * Return the <code>isValid</code> flag for this session.
  -     */
  -    public boolean isValid();
   
   
       /**
  
  
  

Reply via email to