1 16 17 package org.springframework.web.portlet.util; 18 19 import java.io.BufferedReader ; 20 import java.io.IOException ; 21 import java.io.InputStream ; 22 import java.io.UnsupportedEncodingException ; 23 24 import javax.portlet.ActionRequest; 25 26 37 public class ActionRequestWrapper extends PortletRequestWrapper implements ActionRequest { 38 39 40 private final ActionRequest actionRequest; 41 42 43 48 public ActionRequestWrapper(ActionRequest request) { 49 super(request); 50 this.actionRequest = request; 51 } 52 53 54 public InputStream getPortletInputStream() throws IOException { 55 return this.actionRequest.getPortletInputStream(); 56 } 57 58 public void setCharacterEncoding(String enc) throws UnsupportedEncodingException { 59 this.actionRequest.setCharacterEncoding(enc); 60 } 61 62 public BufferedReader getReader() throws IOException { 63 return this.actionRequest.getReader(); 64 } 65 66 public String getCharacterEncoding() { 67 return this.actionRequest.getCharacterEncoding(); 68 } 69 70 public String getContentType() { 71 return this.actionRequest.getContentType(); 72 } 73 74 public int getContentLength() { 75 return this.actionRequest.getContentLength(); 76 } 77 78 } 79 | Popular Tags |