remm 01/09/26 17:58:38 Modified: catalina/src/share/org/apache/catalina/connector HttpResponseBase.java ResponseBase.java Log: - Recycle the facades between each request. Revision Changes Path 1.38 +12 -4 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java Index: HttpResponseBase.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- HttpResponseBase.java 2001/08/24 23:06:08 1.37 +++ HttpResponseBase.java 2001/09/27 00:58:38 1.38 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v 1.37 2001/08/24 23:06:08 craigmcc Exp $ - * $Revision: 1.37 $ - * $Date: 2001/08/24 23:06:08 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v 1.38 2001/09/27 00:58:38 remm Exp $ + * $Revision: 1.38 $ + * $Date: 2001/09/27 00:58:38 $ * * ==================================================================== * @@ -101,7 +101,7 @@ * * @author Craig R. McClanahan * @author Remy Maucherat - * @version $Revision: 1.37 $ $Date: 2001/08/24 23:06:08 $ + * @version $Revision: 1.38 $ $Date: 2001/09/27 00:58:38 $ */ public class HttpResponseBase @@ -319,6 +319,14 @@ return (this.status); + } + + + /** + * Recycle the facade object. + */ + public void recycleFacade() { + facade = new HttpResponseFacade(this); } 1.17 +13 -4 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseBase.java Index: ResponseBase.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseBase.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- ResponseBase.java 2001/08/02 01:43:58 1.16 +++ ResponseBase.java 2001/09/27 00:58:38 1.17 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseBase.java,v 1.16 2001/08/02 01:43:58 remm Exp $ - * $Revision: 1.16 $ - * $Date: 2001/08/02 01:43:58 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/ResponseBase.java,v 1.17 2001/09/27 00:58:38 remm Exp $ + * $Revision: 1.17 $ + * $Date: 2001/09/27 00:58:38 $ * * ==================================================================== * @@ -88,7 +88,7 @@ * the connector-specific methods need to be implemented. * * @author Craig R. McClanahan - * @version $Revision: 1.16 $ $Date: 2001/08/02 01:43:58 $ + * @version $Revision: 1.17 $ $Date: 2001/09/27 00:58:38 $ */ public abstract class ResponseBase @@ -496,6 +496,14 @@ /** + * Recycle the facade object. + */ + public void recycleFacade() { + facade = new ResponseFacade(this); + } + + + /** * Release all object references, and initialize instance variables, in * preparation for reuse of this object. */ @@ -517,6 +525,7 @@ stream = null; writer = null; error = false; + recycleFacade(); }