KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > mock > web > portlet > MockRenderRequest


1 /*
2  * Copyright 2002-2006 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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 RenderRequest {
31
32     /**
33      * Create a new MockRenderRequest with a default {@link MockPortalContext}
34      * and a default {@link MockPortletContext}.
35      * @see MockPortalContext
36      * @see MockPortletContext
37      */

38     public MockRenderRequest() {
39         super();
40     }
41
42     /**
43      * Create a new MockRenderRequest with a default {@link MockPortalContext}.
44      * @param portletContext the PortletContext that the request runs in
45      * @see MockPortalContext
46      */

47     public MockRenderRequest(PortletContext portletContext) {
48         super(portletContext);
49     }
50
51     /**
52      * Create a new MockRenderRequest with a default {@link MockPortalContext}.
53      * @param portletContext the PortletContext that the request runs in
54      * @see MockPortalContext
55      */

56     public MockRenderRequest(PortalContext portalContext, PortletContext portletContext) {
57         super(portalContext, portletContext);
58     }
59
60 }
61
Popular Tags