geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmcma...@apache.org
Subject svn commit: r555429 - in /geronimo/sandbox/portals/geronimo-console/src/main/java/org/apache/geronimo/console: servlet/ util/PortletManager.java
Date Wed, 11 Jul 2007 22:54:49 GMT
Author: pmcmahan
Date: Wed Jul 11 15:54:48 2007
New Revision: 555429

URL: http://svn.apache.org/viewvc?view=rev&rev=555429
Log:
remove unneeded code from admin console

Removed:
    geronimo/sandbox/portals/geronimo-console/src/main/java/org/apache/geronimo/console/servlet/
Modified:
    geronimo/sandbox/portals/geronimo-console/src/main/java/org/apache/geronimo/console/util/PortletManager.java

Modified: geronimo/sandbox/portals/geronimo-console/src/main/java/org/apache/geronimo/console/util/PortletManager.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/portals/geronimo-console/src/main/java/org/apache/geronimo/console/util/PortletManager.java?view=diff&rev=555429&r1=555428&r2=555429
==============================================================================
--- geronimo/sandbox/portals/geronimo-console/src/main/java/org/apache/geronimo/console/util/PortletManager.java
(original)
+++ geronimo/sandbox/portals/geronimo-console/src/main/java/org/apache/geronimo/console/util/PortletManager.java
Wed Jul 11 15:54:48 2007
@@ -408,26 +408,4 @@
         helper.addGBeanToConfiguration(configID, gbean, start);
     }
 
-    /**
-     * Looks up the context prefix used by the portal, even if the thing running
-     * is in one of the portlets.  We're kind of hacking our way there, but hey,
-     * it beats hardcoding.
-     */
-    public static String getConsoleFrameworkServletPath(HttpServletRequest request) {
-        return request.getContextPath();
-/*  With pluto 1.2 the console framework webapp is no longer needed, so the extra
-    logic to compute its servlet path is no longer needed
-        String contextPath;
-        Object response = request.getAttribute("javax.portlet.response");
-        if (response != null && response instanceof RenderResponse) { // request
came from a portlet
-            String pathInfo = request.getPathInfo();
-            String portletPath = Pattern.compile("/").split(pathInfo)[1];
-            contextPath = ((RenderResponse) response).createRenderURL().toString();
-            contextPath = Pattern.compile("/" + portletPath).split(contextPath)[0];
-        } else { // request did not come from a portlet
-            contextPath = request.getContextPath();
-        }
-        return contextPath;
-*/
-    }
 }



Mime
View raw message