1 16 package org.apache.cocoon.environment.portlet; 17 18 import java.io.BufferedReader ; 19 import java.io.IOException ; 20 import java.io.InputStream ; 21 22 30 public final class ActionRequest extends PortletRequest { 31 32 35 protected ActionRequest(String servletPath, 36 String pathInfo, 37 javax.portlet.ActionRequest request, 38 PortletEnvironment environment) { 39 super(servletPath, pathInfo, request, environment); 40 } 41 42 44 public String getCharacterEncoding() { 45 if (super.getCharacterEncoding() == null) { 46 return getActionRequest().getCharacterEncoding(); 47 } 48 return super.getCharacterEncoding(); 49 } 50 51 54 public String getMethod() { 55 return "POST"; 56 } 57 58 59 61 66 public javax.portlet.ActionRequest getActionRequest() { 67 return (javax.portlet.ActionRequest) getPortletRequest(); 68 } 69 70 public InputStream getInputStream() throws IOException { 71 return getActionRequest().getPortletInputStream(); 72 } 73 74 public BufferedReader getReader() throws IOException { 75 return getActionRequest().getReader(); 76 } 77 78 81 public int getContentLength() { 82 return getActionRequest().getContentLength(); 83 } 84 85 88 public String getContentType() { 89 return getActionRequest().getContentType(); 90 } 91 } 92 | Popular Tags |