tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jfarc...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session LocalStrings.properties LocalStrings_fr.properties StandardSession.java
Date Sat, 11 Jan 2003 02:50:07 GMT
jfarcand    2003/01/10 18:50:06

  Modified:    catalina/src/share/org/apache/catalina/session
                        LocalStrings.properties LocalStrings_fr.properties
                        StandardSession.java
  Log:
  According to the javadocs for HttpSession.getLastAccessedTime(), and IllegalStateException
will be thrown if the session has been invalidated.
  
  PR: Bugzilla #15967
  
  Revision  Changes    Path
  1.3       +1 -0      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/LocalStrings.properties
  
  Index: LocalStrings.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/LocalStrings.properties,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LocalStrings.properties	31 Dec 2002 12:54:04 -0000	1.2
  +++ LocalStrings.properties	11 Jan 2003 02:50:06 -0000	1.3
  @@ -39,6 +39,7 @@
   standardSession.getAttribute.ise=getAttribute: Session already invalidated
   standardSession.getAttributeNames.ise=getAttributeNames: Session already invalidated
   standardSession.getCreationTime.ise=getCreationTime: Session already invalidated
  +standardSession.getLastAccessedTime.ise=getLastAccessedTime: Session already invalidated
   standardSession.getMaxInactiveInterval.ise=getMaxInactiveInterval: Session already invalidated
   standardSession.getValueNames.ise=getAttributeNames: Session already invalidated
   standardSession.notSerializable=Cannot serialize session attribute {0} for session {1}
  
  
  
  1.3       +2 -0      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/LocalStrings_fr.properties
  
  Index: LocalStrings_fr.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/LocalStrings_fr.properties,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LocalStrings_fr.properties	31 Dec 2002 12:54:04 -0000	1.2
  +++ LocalStrings_fr.properties	11 Jan 2003 02:50:06 -0000	1.3
  @@ -61,3 +61,5 @@
   persistentManager.processSwaps=Recherche de sessions à basculer vers stockage (swap out),
{0} sessions actives en mémoire
   persistentManager.activeSession=La session {0} a été en attente durant {1} secondes
   persistentManager.swapIn=Basculement depuis le stockage (swap in) de la session {0}
  +
  +standardSession.getLastAccessedTime.ise="getLastAccessedTime": Session d\u00E9j\u00E0 invalid\u00E9e
  
  
  
  1.11      +8 -4      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java
  
  Index: StandardSession.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- StandardSession.java	31 Dec 2002 12:53:45 -0000	1.10
  +++ StandardSession.java	11 Jan 2003 02:50:06 -0000	1.11
  @@ -441,7 +441,11 @@
        * a value associated with the session, do not affect the access time.
        */
       public long getLastAccessedTime() {
  +        if ( !isValid ) {
  +            throw new IllegalStateException(
  +                sm.getString("standardSession.getLastAccessedTime"));
   
  +        }
           return (this.lastAccessedTime);
   
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message