portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject svn commit: r329254 - in /portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed: container/JetspeedPortletContainerWrapper.java engine/servlet/ServletObjectAccess.java
Date Fri, 28 Oct 2005 17:18:05 GMT
Author: weaver
Date: Fri Oct 28 10:17:59 2005
New Revision: 329254

URL: http://svn.apache.org/viewcvs?rev=329254&view=rev
Log:
Deprecate use of static utility class ServletObjectAccess.  
ServletRequestFactory and ServletResponseFactory are now injected into the 
JetpseedPortletContainerWrapper.

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/JetspeedPortletContainerWrapper.java
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/engine/servlet/ServletObjectAccess.java

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/JetspeedPortletContainerWrapper.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/JetspeedPortletContainerWrapper.java?rev=329254&r1=329253&r2=329254&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/JetspeedPortletContainerWrapper.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/JetspeedPortletContainerWrapper.java
Fri Oct 28 10:17:59 2005
@@ -25,7 +25,8 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.jetspeed.engine.servlet.ServletObjectAccess;
+import org.apache.jetspeed.engine.servlet.ServletRequestFactory;
+import org.apache.jetspeed.engine.servlet.ServletResponseFactory;
 import org.apache.pluto.PortletContainer;
 import org.apache.pluto.PortletContainerException;
 import org.apache.pluto.om.window.PortletWindow;
@@ -46,6 +47,9 @@
     private final Properties properties;
     private final PortletContainerEnvironment environment;
     private final ServletConfig servletConfig;
+    
+    private ServletRequestFactory requestFactory;
+    private ServletResponseFactory responseFactory;
 
     public JetspeedPortletContainerWrapper(PortletContainer pluto, String containerId, 
             ServletConfig servletConfig, PortletContainerEnvironment env, Properties properties)
@@ -135,8 +139,8 @@
     {
         pluto.portletLoad(
             portletWindow,
-            ServletObjectAccess.getServletRequest(servletRequest, portletWindow),
-            ServletObjectAccess.getServletResponse(servletResponse, portletWindow));
+            requestFactory.getServletRequest(servletRequest, portletWindow),
+            responseFactory.getServletResponse(servletResponse));
     }
 
     /**
@@ -150,6 +154,16 @@
     public boolean isInitialized()
     {
         return initialized;
+    }
+
+    public void setRequestFactory(ServletRequestFactory requestFactory)
+    {
+        this.requestFactory = requestFactory;
+    }
+
+    public void setResponseFactory(ServletResponseFactory responseFactory)
+    {
+        this.responseFactory = responseFactory;
     }
 
 }

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/engine/servlet/ServletObjectAccess.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/engine/servlet/ServletObjectAccess.java?rev=329254&r1=329253&r2=329254&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/engine/servlet/ServletObjectAccess.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/engine/servlet/ServletObjectAccess.java
Fri Oct 28 10:17:59 2005
@@ -31,6 +31,7 @@
  * Provides access to servlet request and response wrappers
  * 
  *
+ * @deprecated Please use Spring to access request and response factories.
  * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
  * @version $Id$
  */



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


Mime
View raw message