KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > environment > portlet > RenderRequest


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
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 package org.apache.cocoon.environment.portlet;
17
18 /**
19  * Implements the {@link org.apache.cocoon.environment.Request} interface for
20  * the JSR-168 (Portlet) environment.
21  *
22  * @author <a HREF="mailto:alex.rudnev@dc.gov">Alex Rudnev</a>
23  * @author <a HREF="mailto:vgritsenko@apache.org">Vadim Gritsenko</a>
24  * @version CVS $Id: RenderRequest.java 30932 2004-07-29 17:35:38Z vgritsenko $
25  */

26 public final class RenderRequest extends PortletRequest {
27
28     /**
29      * Creates a RenderRequest based on a real RenderRequest object
30      */

31     protected RenderRequest(String JavaDoc servletPath,
32                             String JavaDoc pathInfo,
33                             javax.portlet.RenderRequest request,
34                             PortletEnvironment environment) {
35         super(servletPath, pathInfo, request, environment);
36     }
37
38     /**
39      * Type cast portletRequest to RenderRequest
40      *
41      * @return type casted portletRequest
42      */

43     public javax.portlet.RenderRequest getRenderRequest() {
44         return (javax.portlet.RenderRequest) getPortletRequest();
45     }
46
47     /**
48      * Render request can be always recognized by GET method
49      */

50     public String JavaDoc getMethod() {
51         return "GET";
52     }
53 }
54
Popular Tags