01: /*
02: * Copyright 2002-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.springframework.mock.web.portlet;
18:
19: import javax.portlet.PortalContext;
20: import javax.portlet.PortletContext;
21: import javax.portlet.RenderRequest;
22:
23: /**
24: * Mock implementation of the {@link javax.portlet.RenderRequest} interface.
25: *
26: * @author John A. Lewis
27: * @author Juergen Hoeller
28: * @since 2.0
29: */
30: public class MockRenderRequest extends MockPortletRequest implements
31: RenderRequest {
32:
33: /**
34: * Create a new MockRenderRequest with a default {@link MockPortalContext}
35: * and a default {@link MockPortletContext}.
36: * @see MockPortalContext
37: * @see MockPortletContext
38: */
39: public MockRenderRequest() {
40: super ();
41: }
42:
43: /**
44: * Create a new MockRenderRequest with a default {@link MockPortalContext}.
45: * @param portletContext the PortletContext that the request runs in
46: * @see MockPortalContext
47: */
48: public MockRenderRequest(PortletContext portletContext) {
49: super (portletContext);
50: }
51:
52: /**
53: * Create a new MockRenderRequest with a default {@link MockPortalContext}.
54: * @param portletContext the PortletContext that the request runs in
55: * @see MockPortalContext
56: */
57: public MockRenderRequest(PortalContext portalContext,
58: PortletContext portletContext) {
59: super(portalContext, portletContext);
60: }
61:
62: }
|