Hi all, attached is a patch to RequestParamMatcher that avoids creating, using and decommissioning (read destroying) an instance of the class for every use. By applying this patch only one instance of RequestParamMatcher is created which serves all requests. Thanks, Christian
Index: RequestParamMatcher.java =================================================================== RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/matching/RequestParamMatcher.java,v retrieving revision 1.5 diff -u -r1.5 RequestParamMatcher.java --- RequestParamMatcher.java 2001/08/20 13:55:16 1.5 +++ RequestParamMatcher.java 2001/08/28 15:49:31 @@ -15,6 +15,7 @@ * Standard imports */ import org.apache.avalon.framework.parameters.Parameters; +import org.apache.avalon.framework.thread.ThreadSafe; import org.apache.cocoon.Constants; import org.apache.cocoon.environment.Request; @@ -36,7 +37,7 @@ * @author <a href="mailto:[EMAIL PROTECTED]">Marcus Crafter</a> * @version CVS $Revision: 1.5 $ */ -public class RequestParamMatcher implements Matcher { +public class RequestParamMatcher implements Matcher, ThreadSafe { /** * Match method to see if the request parameter exists. If it does * have a value the parameter is added to the array list for later
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]