cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r330269 - in /cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto: factory/ services/factory/
Date Wed, 02 Nov 2005 15:04:42 GMT
Author: cziegeler
Date: Wed Nov  2 07:04:30 2005
New Revision: 330269

URL: http://svn.apache.org/viewcvs?rev=330269&view=rev
Log:
Add own factories for action and render request objects

Added:
    cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestFactoryImpl.java
  (with props)
    cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestImpl.java
  (with props)
    cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestFactoryImpl.java
  (with props)
    cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestImpl.java
  (with props)
Modified:
    cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/services/factory/FactoryManagerServiceImpl.java

Added: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestFactoryImpl.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestFactoryImpl.java?rev=330269&view=auto
==============================================================================
--- cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestFactoryImpl.java
(added)
+++ cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestFactoryImpl.java
Wed Nov  2 07:04:30 2005
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.portal.pluto.factory;
+
+import javax.portlet.ActionRequest;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.factory.ActionRequestFactory;
+import org.apache.pluto.om.window.PortletWindow;
+
+/**
+ * Implementation for the render request factory.
+ *
+ * @version $Id$
+ */
+public class ActionRequestFactoryImpl
+    extends AbstractFactory
+    implements ActionRequestFactory {
+
+    /**
+     * @see org.apache.pluto.factory.ActionRequestFactory#getActionRequest(org.apache.pluto.om.window.PortletWindow,
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
+     */
+    public ActionRequest getActionRequest(PortletWindow       portletWindow,
+                                          HttpServletRequest  servletRequest,
+                                          HttpServletResponse servletResponse) {
+        ActionRequest actionRequest = new ActionRequestImpl(portletWindow, servletRequest);
+        return actionRequest;
+    }
+}

Propchange: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestFactoryImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestFactoryImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestImpl.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestImpl.java?rev=330269&view=auto
==============================================================================
--- cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestImpl.java
(added)
+++ cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestImpl.java
Wed Nov  2 07:04:30 2005
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.portal.pluto.factory;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.apache.pluto.om.window.PortletWindow;
+
+/**
+ * Implementation for the action request object.
+ *
+ * @version $Id$
+ */
+public class ActionRequestImpl
+    extends org.apache.pluto.core.impl.ActionRequestImpl {
+
+    public ActionRequestImpl(PortletWindow window, HttpServletRequest req) {
+        super(window, req);
+    }
+}

Propchange: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/ActionRequestImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestFactoryImpl.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestFactoryImpl.java?rev=330269&view=auto
==============================================================================
--- cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestFactoryImpl.java
(added)
+++ cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestFactoryImpl.java
Wed Nov  2 07:04:30 2005
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2004-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.portal.pluto.factory;
+
+import javax.portlet.RenderRequest;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.pluto.factory.RenderRequestFactory;
+import org.apache.pluto.om.window.PortletWindow;
+
+/**
+ * Implementation for the render request factory.
+ *
+ * @version $Id$
+ */
+public class RenderRequestFactoryImpl
+    extends AbstractFactory
+    implements RenderRequestFactory {
+
+    /**
+     * @see org.apache.pluto.factory.RenderRequestFactory#getRenderRequest(org.apache.pluto.om.window.PortletWindow,
javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
+     */
+    public RenderRequest getRenderRequest(PortletWindow       portletWindow,
+                                          HttpServletRequest  servletRequest,
+                                          HttpServletResponse servletResponse) {
+        RenderRequest renderRequest = new RenderRequestImpl( portletWindow,
+                                                             servletRequest);
+        return renderRequest;
+    }
+}

Propchange: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestFactoryImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestFactoryImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestImpl.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestImpl.java?rev=330269&view=auto
==============================================================================
--- cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestImpl.java
(added)
+++ cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestImpl.java
Wed Nov  2 07:04:30 2005
@@ -0,0 +1,33 @@
+/*
+ * Copyright 2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.cocoon.portal.pluto.factory;
+
+import javax.servlet.http.HttpServletRequest;
+
+import org.apache.pluto.om.window.PortletWindow;
+
+/**
+ * Implementation for the render request object.
+ *
+ * @version $Id$
+ */
+public class RenderRequestImpl
+    extends org.apache.pluto.core.impl.RenderRequestImpl {
+
+    public RenderRequestImpl(PortletWindow window, HttpServletRequest req) {
+        super(window, req);
+    }
+}

Propchange: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/factory/RenderRequestImpl.java
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/services/factory/FactoryManagerServiceImpl.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/services/factory/FactoryManagerServiceImpl.java?rev=330269&r1=330268&r2=330269&view=diff
==============================================================================
--- cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/services/factory/FactoryManagerServiceImpl.java
(original)
+++ cocoon/blocks/portal/trunk/java/org/apache/cocoon/portal/pluto/services/factory/FactoryManagerServiceImpl.java
Wed Nov  2 07:04:30 2005
@@ -44,22 +44,22 @@
 import org.apache.avalon.framework.service.ServiceException;
 import org.apache.avalon.framework.service.ServiceManager;
 import org.apache.avalon.framework.service.Serviceable;
+import org.apache.cocoon.portal.pluto.factory.ActionRequestFactoryImpl;
 import org.apache.cocoon.portal.pluto.factory.ControllerFactoryImpl;
 import org.apache.cocoon.portal.pluto.factory.ObjectIDFactoryImpl;
 import org.apache.cocoon.portal.pluto.factory.PortletInvokerFactoryImpl;
 import org.apache.cocoon.portal.pluto.factory.PortletPreferencesFactoryImpl;
+import org.apache.cocoon.portal.pluto.factory.RenderRequestFactoryImpl;
 import org.apache.cocoon.servlet.CocoonServlet;
 import org.apache.cocoon.util.ClassUtils;
 import org.apache.pluto.factory.Factory;
 import org.apache.pluto.factory.ObjectIDFactory;
-import org.apache.pluto.factory.impl.ActionRequestFactoryImpl;
 import org.apache.pluto.factory.impl.ActionResponseFactoryImpl;
 import org.apache.pluto.factory.impl.PortalContextFactoryImpl;
 import org.apache.pluto.factory.impl.PortletConfigFactoryImpl;
 import org.apache.pluto.factory.impl.PortletContextFactoryImpl;
 import org.apache.pluto.factory.impl.PortletSessionFactoryImpl;
 import org.apache.pluto.factory.impl.PortletURLFactoryImpl;
-import org.apache.pluto.factory.impl.RenderRequestFactoryImpl;
 import org.apache.pluto.factory.impl.RenderResponseFactoryImpl;
 import org.apache.pluto.invoker.PortletInvoker;
 import org.apache.pluto.om.ControllerFactory;



Mime
View raw message