1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.container;
18
19 import javax.servlet.http.HttpServletRequest;
20 import javax.servlet.http.HttpServletRequestWrapper;
21 import javax.portlet.PortletRequest;
22
23 import org.apache.pluto.om.portlet.PortletDefinition;
24
25 /***
26 * The container request wrappers the servlet request and is used
27 * within the container to communicate to the invoked servlet.
28 *
29 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
30 * @version $Id: ContainerRequest.java 516448 2007-03-09 16:25:47Z ate $
31 */
32 public class ContainerRequest extends HttpServletRequestWrapper
33 {
34 protected PortletDefinition portletDef;
35 protected PortletRequest portletRequest;
36
37 public ContainerRequest(HttpServletRequest httpRequest,
38 PortletDefinition portletDef)
39 {
40 super(httpRequest);
41 this.portletDef = portletDef;
42 }
43
44 public PortletDefinition getPortletDefinition()
45 {
46 return this.portletDef;
47 }
48
49 public PortletRequest getPortletRequest()
50 {
51 return portletRequest;
52 }
53
54 public void setPortletRequest(PortletRequest portletRequest)
55 {
56 this.portletRequest = portletRequest;
57 }
58
59 }
60