You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2005/11/13 19:43:58 UTC

svn commit: r333096 - /portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/rules/impl/PathSessionResolver.java

Author: taylor
Date: Sun Nov 13 10:43:56 2005
New Revision: 333096

URL: http://svn.apache.org/viewcvs?rev=333096&view=rev
Log:
simplifying the extension rules to take any file ending in .xxx or .xxxx except psml

Modified:
    portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/rules/impl/PathSessionResolver.java

Modified: portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/rules/impl/PathSessionResolver.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/rules/impl/PathSessionResolver.java?rev=333096&r1=333095&r2=333096&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/rules/impl/PathSessionResolver.java (original)
+++ portals/jetspeed-2/trunk/components/profiler/src/java/org/apache/jetspeed/profiler/rules/impl/PathSessionResolver.java Sun Nov 13 10:43:56 2005
@@ -63,7 +63,10 @@
     private String mapPath(RequestContext context, String originalPath)
     {
         String path = originalPath;
-         
+        if (path.endsWith(".psml"))
+        {
+            return originalPath;
+        }
         for (int ix=0; ix < REGEX_MAP.length; ix++)
         {
             if (path.matches(REGEX_MAP[ix][0]))
@@ -80,8 +83,9 @@
     // TODO: configure this information externally and live
     static String[][] REGEX_MAP =
     {     
-        {".*\\.html", "/Public/content.psml"},       
-        {".*\\.pdf", "/Public/content.psml"},        
+        {".*\\.(...|....)", "/Public/content.psml"}
+//        {".*\\.html", "/Public/content.psml"},       
+//        {".*\\.pdf", "/Public/content.psml"},        
 //        {"/_content.*", "/Public/content.psml"}
 //        {"/data/*", "/Public/content2.psml"},
     };



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org