KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > portlet > impl > RenderRequestImpl


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.portlet.impl;
10
11 import java.util.Enumeration JavaDoc;
12 import java.util.Map JavaDoc;
13
14 import javax.portlet.PortletPreferences;
15 import javax.portlet.RenderRequest;
16 import javax.servlet.http.HttpServletRequest JavaDoc;
17
18 import org.jboss.portal.server.PortalRequest;
19 import org.jboss.portal.server.PortalResponse;
20 import org.jboss.portal.server.Window;
21 import org.jboss.portal.server.WindowContext;
22 import org.jboss.portal.server.user.UserContext;
23
24 /**
25  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
26  * @version $Revision: 1.2 $
27  */

28 public class RenderRequestImpl extends PortletRequestImpl implements RenderRequest
29 {
30
31    public RenderRequestImpl(
32          UserContext userContext,
33          PortletPreferences preferences,
34          Window window,
35          WindowContext windowContext,
36          PortalRequest req,
37          PortalResponse resp,
38          HttpServletRequest JavaDoc dreq)
39    {
40       super(userContext, preferences, window, windowContext, req, resp, dreq);
41       preferences = null;
42    }
43
44    // PLT.11.1.1
45

46    public String JavaDoc getParameter(String JavaDoc name)
47    {
48       return instanceCtx.getParameters().getParameter(name);
49    }
50
51    public Enumeration JavaDoc getParameterNames()
52    {
53       return instanceCtx.getParameters().getParameterNames();
54    }
55
56    public String JavaDoc[] getParameterValues(String JavaDoc name)
57    {
58       return instanceCtx.getParameters().getParameterValues(name);
59    }
60
61    public Map JavaDoc getParameterMap()
62    {
63       return instanceCtx.getParameters().getParameterMap();
64    }
65 }
66
Popular Tags