KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > web > portlet > context > PortletWebRequest


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.web.portlet.context;
18
19 import java.util.Locale JavaDoc;
20 import java.util.Map JavaDoc;
21
22 import javax.portlet.PortletRequest;
23
24 import org.springframework.web.context.request.WebRequest;
25
26 /**
27  * WebRequest adapter for a PortletRequest.
28  *
29  * @author Juergen Hoeller
30  * @since 2.0
31  */

32 public class PortletWebRequest extends PortletRequestAttributes implements WebRequest {
33
34     /**
35      * Create a new PortletWebRequest instance for the given request.
36      * @param request current portlet request
37      */

38     public PortletWebRequest(PortletRequest request) {
39         super(request);
40     }
41
42     public String JavaDoc getParameter(String JavaDoc paramName) {
43         return getRequest().getParameter(paramName);
44     }
45
46     public String JavaDoc[] getParameterValues(String JavaDoc paramName) {
47         return getRequest().getParameterValues(paramName);
48     }
49
50     public Map JavaDoc getParameterMap() {
51         return getRequest().getParameterMap();
52     }
53
54     public Locale JavaDoc getLocale() {
55         return getRequest().getLocale();
56     }
57
58 }
59
Popular Tags