You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@locus.apache.org on 2000/05/21 08:51:53 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core Request.java RequestImpl.java ResponseImpl.java

costin      00/05/20 23:51:53

  Modified:    src/share/org/apache/tomcat/core Request.java
                        RequestImpl.java ResponseImpl.java
  Log:
  Minor changes - add the setter for jvmroute, remove a bit of GC in HttpResponse.
  ( flushing the workspace )
  
  Revision  Changes    Path
  1.37      +1 -0      jakarta-tomcat/src/share/org/apache/tomcat/core/Request.java
  
  Index: Request.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Request.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- Request.java	2000/05/12 19:36:48	1.36
  +++ Request.java	2000/05/21 06:51:52	1.37
  @@ -196,6 +196,7 @@
       // Multiple JVM support
       // GS, used by the load balancing layer
       public String getJvmRoute();
  +    public void setJvmRoute(String route);
   
       // Will be set by session interceptors
       public String getRequestedSessionId() ;
  
  
  
  1.37      +7 -3      jakarta-tomcat/src/share/org/apache/tomcat/core/RequestImpl.java
  
  Index: RequestImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/RequestImpl.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- RequestImpl.java	2000/05/12 19:36:49	1.36
  +++ RequestImpl.java	2000/05/21 06:51:52	1.37
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/RequestImpl.java,v 1.36 2000/05/12 19:36:49 costin Exp $
  - * $Revision: 1.36 $
  - * $Date: 2000/05/12 19:36:49 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/RequestImpl.java,v 1.37 2000/05/21 06:51:52 costin Exp $
  + * $Revision: 1.37 $
  + * $Date: 2000/05/21 06:51:52 $
    *
    * ====================================================================
    *
  @@ -367,6 +367,10 @@
       // GS - return the jvm load balance route
       public String getJvmRoute() {
   	    return jvmRoute;
  +    }
  +
  +    public void setJvmRoute(String jvmRoute) {
  +	    this.jvmRoute=jvmRoute;
       }
   
       public String getRequestedSessionId() {
  
  
  
  1.25      +6 -4      jakarta-tomcat/src/share/org/apache/tomcat/core/ResponseImpl.java
  
  Index: ResponseImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/ResponseImpl.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- ResponseImpl.java	2000/04/26 16:15:15	1.24
  +++ ResponseImpl.java	2000/05/21 06:51:52	1.25
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/ResponseImpl.java,v 1.24 2000/04/26 16:15:15 craigmcc Exp $
  - * $Revision: 1.24 $
  - * $Date: 2000/04/26 16:15:15 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/ResponseImpl.java,v 1.25 2000/05/21 06:51:52 costin Exp $
  + * $Revision: 1.25 $
  + * $Date: 2000/05/21 06:51:52 $
    *
    * ====================================================================
    *
  @@ -148,11 +148,13 @@
   	return started;
       }
   
  +    static final Locale defaultLocale=new Locale(Constants.LOCALE_DEFAULT, "");
  +    
       public void recycle() {
   	userCookies.removeAllElements(); // XXX reuse !!!
   	contentType = Constants.DEFAULT_CONTENT_TYPE;
   	contentLanguage = null;
  -        locale = new Locale(Constants.LOCALE_DEFAULT, "");
  +        locale = defaultLocale;
   	characterEncoding = Constants.DEFAULT_CHAR_ENCODING;
   	contentLength = -1;
   	status = 200;