Author: ptahchiev
Date: Sun Feb 17 06:57:04 2008
New Revision: 628489

URL: http://svn.apache.org/viewvc?rev=628489&view=rev
Log:
applied some Jetty 5 version chenges.

Modified:
    
jakarta/cactus/branches/CACTUS_TRUNK_MAMOUTH/framework/framework-13-14/src/main/java/org/apache/cactus/extension/jetty/JettyTestSetup.java

Modified: 
jakarta/cactus/branches/CACTUS_TRUNK_MAMOUTH/framework/framework-13-14/src/main/java/org/apache/cactus/extension/jetty/JettyTestSetup.java
URL: 
http://svn.apache.org/viewvc/jakarta/cactus/branches/CACTUS_TRUNK_MAMOUTH/framework/framework-13-14/src/main/java/org/apache/cactus/extension/jetty/JettyTestSetup.java?rev=628489&r1=628488&r2=628489&view=diff
==============================================================================
--- 
jakarta/cactus/branches/CACTUS_TRUNK_MAMOUTH/framework/framework-13-14/src/main/java/org/apache/cactus/extension/jetty/JettyTestSetup.java
 (original)
+++ 
jakarta/cactus/branches/CACTUS_TRUNK_MAMOUTH/framework/framework-13-14/src/main/java/org/apache/cactus/extension/jetty/JettyTestSetup.java
 Sun Feb 17 06:57:04 2008
@@ -484,19 +484,20 @@
                 new Class[] {String.class, String.class})
                 .invoke(handler, 
                 new Object[] {theConfiguration.getDefaultRedirectorName(),
-                FilterTestRedirector.class.getName()});        
+                FilterTestRedirector.class.getName()});
+            
+           // filterHolder.getClass().getMethod("addAppliesTo",
+           //     new Class[] {String.class})
+           //     .invoke(filterHolder, new Object[] {"REQUEST"});        
     
-            filterHolder.getClass().getMethod("addAppliesTo",
-                new Class[] {String.class})
-                .invoke(filterHolder, new Object[] {"REQUEST"});        
-    
-            // Map the Cactus Filter redirector to a path
-            handler.getClass().getMethod("mapPathToFilter", 
-                new Class[] {String.class, String.class})
+
+           // Map the Cactus Filter redirector to a path
+            handler.getClass().getMethod("addFilterPathMapping", 
+                new Class[] {String.class, String.class, Integer.TYPE})
                 .invoke(handler, 
                 new Object[] {"/" 
                 + theConfiguration.getDefaultRedirectorName(),
-                theConfiguration.getDefaultRedirectorName()});
+                theConfiguration.getDefaultRedirectorName(), new Integer(0)});
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to