01: /*
02: * (C) Copyright 2000 - 2003 Nabh Information Systems, Inc.
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: */
19:
20: package com.nabhinc.portal.container;
21:
22: import java.io.BufferedReader;
23: import java.io.IOException;
24: import java.io.InputStream;
25: import java.io.UnsupportedEncodingException;
26: import java.util.Locale;
27:
28: import javax.portlet.ActionRequest;
29: import javax.portlet.PortalContext;
30: import javax.portlet.PortletContext;
31: import javax.servlet.http.HttpServletRequest;
32:
33: /**
34: *
35: *
36: * @author Padmanabh dabke
37: * (c) 2003 Nabh Information Systems, Inc. All Rights Reserved.
38: */
39: @SuppressWarnings("serial")
40: public class ActionRequestImpl extends PortletRequestImpl implements
41: ActionRequest {
42:
43: /**
44: * @param req
45: */
46: public ActionRequestImpl(HttpServletRequest req,
47: PortletContext portletContext, PortalContext portalContext,
48: Locale[] l, String mimeType) {
49: super (req, portletContext, portalContext, l, mimeType);
50: }
51:
52: /* (non-Javadoc)
53: * @see javax.portlet.ActionRequest#getPortletInputStream()
54: */
55: public InputStream getPortletInputStream() throws IOException {
56: return priServletRequest.getInputStream();
57: }
58:
59: /* (non-Javadoc)
60: * @see javax.portlet.ActionRequest#setCharacterEncoding(java.lang.String)
61: */
62: public void setCharacterEncoding(String enc)
63: throws UnsupportedEncodingException {
64: priServletRequest.setCharacterEncoding(enc);
65:
66: }
67:
68: /* (non-Javadoc)
69: * @see javax.portlet.ActionRequest#getReader()
70: */
71: public BufferedReader getReader()
72: throws UnsupportedEncodingException, IOException {
73: return priServletRequest.getReader();
74: }
75:
76: /* (non-Javadoc)
77: * @see javax.portlet.ActionRequest#getCharacterEncoding()
78: */
79: public String getCharacterEncoding() {
80: return priServletRequest.getCharacterEncoding();
81: }
82:
83: /* (non-Javadoc)
84: * @see javax.portlet.ActionRequest#getContentType()
85: */
86: public String getContentType() {
87: return priServletRequest.getContentType();
88: }
89:
90: /* (non-Javadoc)
91: * @see javax.portlet.ActionRequest#getContentLength()
92: */
93: public int getContentLength() {
94: return priServletRequest.getContentLength();
95: }
96:
97: }
|