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 2008/10/27 17:29:32 UTC

svn commit: r708232 - /portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portal/src/main/java/org/apache/jetspeed/engine/JetspeedEngine.java

Author: taylor
Date: Mon Oct 27 09:29:31 2008
New Revision: 708232

URL: http://svn.apache.org/viewvc?rev=708232&view=rev
Log:
https://issues.apache.org/jira/browse/JS2-914
I changed this patch a little and removed the request parameter/pipeline support from the service()

Modified:
    portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portal/src/main/java/org/apache/jetspeed/engine/JetspeedEngine.java

Modified: portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portal/src/main/java/org/apache/jetspeed/engine/JetspeedEngine.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portal/src/main/java/org/apache/jetspeed/engine/JetspeedEngine.java?rev=708232&r1=708231&r2=708232&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portal/src/main/java/org/apache/jetspeed/engine/JetspeedEngine.java (original)
+++ portals/jetspeed-2/portal/branches/JS2-871-pluto-2.0-upgrade/components/jetspeed-portal/src/main/java/org/apache/jetspeed/engine/JetspeedEngine.java Mon Oct 27 09:29:31 2008
@@ -188,26 +188,21 @@
     public void service( RequestContext context ) throws JetspeedException
     {        
         long start = System.currentTimeMillis();
-        String targetPipeline = context
-                .getRequestParameter(PortalReservedParameters.PIPELINE);
+        String targetPipeline = (String)context.getAttribute(PortalReservedParameters.PIPELINE);                
         if (null == targetPipeline)
         {
-            targetPipeline = (String)context.getAttribute(PortalReservedParameters.PIPELINE);                
-            if (null == targetPipeline)
+            String pipelineKey = context.getRequest().getServletPath();                    
+            if (null != pipelineKey)
             {
-                String pipelineKey = context.getRequest().getServletPath();                    
-                if (null != pipelineKey)
-                {
-                    if (pipelineKey.equals("/portal"))
-                        targetPipeline = this.defaultPipelineName;
-                    else
-                        targetPipeline = (String)pipelineMapper.get(pipelineKey); 
-                    // System.out.println("pipeline = " + targetPipeline);
-                }
-                else
-                {
+                if (pipelineKey.equals("/portal"))
                     targetPipeline = this.defaultPipelineName;
-                }
+                else
+                    targetPipeline = (String)pipelineMapper.get(pipelineKey); 
+                // System.out.println("pipeline = " + targetPipeline);
+            }
+            else
+            {
+                targetPipeline = this.defaultPipelineName;
             }
         }
         Pipeline pipeline = null;



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