larryi 00/11/09 05:31:36 Modified: src/share/org/apache/tomcat/core Tag: tomcat_32 ResponseImpl.java Response.java Log: Adding a property to indicate if error handling has been performed. Since Handler and ServletWrapper will be propagating exceptions, we need a way to determine if the exception has been handled at a higher level. Revision Changes Path No revision No revision 1.33.2.3 +13 -3 jakarta-tomcat/src/share/org/apache/tomcat/core/Attic/ResponseImpl.java Index: ResponseImpl.java =================================================================== RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Attic/ResponseImpl.java,v retrieving revision 1.33.2.2 retrieving revision 1.33.2.3 diff -u -r1.33.2.2 -r1.33.2.3 --- ResponseImpl.java 2000/11/07 03:16:45 1.33.2.2 +++ ResponseImpl.java 2000/11/09 13:31:35 1.33.2.3 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Attic/ResponseImpl.java,v 1.33.2.2 2000/11/07 03:16:45 craigmcc Exp $ - * $Revision: 1.33.2.2 $ - * $Date: 2000/11/07 03:16:45 $ + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Attic/ResponseImpl.java,v 1.33.2.3 2000/11/09 13:31:35 larryi Exp $ + * $Revision: 1.33.2.3 $ + * $Date: 2000/11/09 13:31:35 $ * * ==================================================================== * @@ -108,6 +108,7 @@ protected boolean commited = false; boolean notIncluded=true; + boolean errorHandled=false; // default implementation will just append everything here StringBuffer body=null; @@ -155,6 +156,14 @@ } } + + public boolean isErrorHandled() { + return errorHandled; + } + + public void setErrorHandled( boolean handled ) { + errorHandled = handled; + } public boolean isStarted() { return started; @@ -175,6 +184,7 @@ started = false; commited = false; notIncluded=true; + errorHandled=false; // adapter body=null; if( out != null ) out.recycle(); 1.22.2.1 +10 -1 jakarta-tomcat/src/share/org/apache/tomcat/core/Response.java Index: Response.java =================================================================== RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Response.java,v retrieving revision 1.22 retrieving revision 1.22.2.1 diff -u -r1.22 -r1.22.2.1 --- Response.java 2000/05/30 06:16:46 1.22 +++ Response.java 2000/11/09 13:31:35 1.22.2.1 @@ -142,7 +142,16 @@ * HTTP/0.9 */ public void setIncluded(boolean b); - + + /** True if error has been handled + */ + public boolean isErrorHandled(); + + /** This is used to indicate that error handling has been performed. + * It is used to avoid invoking the error handling more than once + * as exceptions are passed up the call stack. + */ + public void setErrorHandled(boolean b); // -------------------- Buffering -------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]