tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/session StandardSessionInterceptor.java
Date Wed, 01 Nov 2000 23:36:16 GMT
costin      00/11/01 15:36:16

  Modified:    src/share/org/apache/tomcat/session
                        StandardSessionInterceptor.java
  Log:
  Added "randomClass" property.
  
  This config option is used by the session interceptor to generate session id.
  Instead of using a system property or a context manager option it's better
  to be able to configure the session interceptor directly ( we may want to use
  different random sources for different webapps )
  
  Revision  Changes    Path
  1.14      +7 -1      jakarta-tomcat/src/share/org/apache/tomcat/session/StandardSessionInterceptor.java
  
  Index: StandardSessionInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/session/StandardSessionInterceptor.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- StandardSessionInterceptor.java	2000/09/25 07:21:28	1.13
  +++ StandardSessionInterceptor.java	2000/11/01 23:36:16	1.14
  @@ -89,6 +89,7 @@
   
       int checkInterval = 60;
       int maxActiveSessions = -1;
  +    String randomClass=null;
       
       public StandardSessionInterceptor() {
       }
  @@ -107,7 +108,12 @@
       public void setMaxActiveSessions( int count ) {
   	maxActiveSessions=count;
       }
  -    
  +
  +    public final void setRandomClass(String randomClass) {
  +	this.randomClass=randomClass;
  +	System.setProperty(ContextManager.RANDOM_CLASS_PROPERTY, randomClass);
  +    }
  +
       
       // -------------------- Tomcat request events --------------------
       public void engineInit( ContextManager cm ) throws TomcatException {
  
  
  

Mime
View raw message