1 9 package org.jboss.portal.portlet.impl; 10 11 import java.io.BufferedReader ; 12 import java.io.IOException ; 13 import java.io.InputStream ; 14 import java.io.UnsupportedEncodingException ; 15 import java.util.Enumeration ; 16 import java.util.Map ; 17 18 import javax.portlet.ActionRequest; 19 import javax.portlet.PortletPreferences; 20 import javax.servlet.http.HttpServletRequest ; 21 22 import org.jboss.portal.server.PortalRequest; 23 import org.jboss.portal.server.PortalResponse; 24 import org.jboss.portal.server.Window; 25 import org.jboss.portal.server.WindowContext; 26 import org.jboss.portal.server.user.UserContext; 27 28 32 public class ActionRequestImpl extends PortletRequestImpl implements ActionRequest 33 { 34 35 public ActionRequestImpl( 36 UserContext userContext, 37 PortletPreferences preferences, 38 Window window, 39 WindowContext windowCtx, 40 PortalRequest req, 41 PortalResponse resp, 42 HttpServletRequest dreq) 43 { 44 super(userContext, preferences, window, windowCtx, req, resp, dreq); 45 preferences = null; 46 } 47 48 50 public String getParameter(String s) 51 { 52 return req.getTargetParameters().getParameter(s); 53 } 54 55 public Enumeration getParameterNames() 56 { 57 return req.getTargetParameters().getParameterNames(); 58 } 59 60 public String [] getParameterValues(String s) 61 { 62 return req.getTargetParameters().getParameterValues(s); 63 } 64 65 public Map getParameterMap() 66 { 67 return req.getTargetParameters().getParameterMap(); 68 } 69 70 72 public InputStream getPortletInputStream() throws IOException 73 { 74 return req.getInputStream(); 75 } 76 77 public void setCharacterEncoding(String s) throws UnsupportedEncodingException 78 { 79 throw new IllegalStateException ("called after the body has been read"); 81 } 83 84 public BufferedReader getReader() throws UnsupportedEncodingException , IOException 85 { 86 return req.getReader(); 87 } 88 89 public String getCharacterEncoding() 90 { 91 return req.getCharacterEncoding(); 92 } 93 94 public String getContentType() 95 { 96 return req.getContentType(); 97 } 98 99 public int getContentLength() 100 { 101 return req.getContentLength(); 102 } 103 } 104 | Popular Tags |