1 48 49 50 package com.caucho.portal.generic.context; 51 52 import javax.portlet.ActionRequest; 53 import java.io.BufferedReader ; 54 import java.io.IOException ; 55 import java.io.InputStream ; 56 import java.io.UnsupportedEncodingException ; 57 import java.util.Enumeration ; 58 import java.util.Map ; 59 60 61 class ActionRequestImpl 62 extends PortletRequestImpl 63 implements ActionRequest 64 { 65 public ActionRequestImpl(ConnectionContext context) 66 { 67 super(context); 68 } 69 70 public Map getParameterMap() 71 { 72 return _context.getActionParameterMap(); 73 } 74 75 public String getParameter(String name) 76 { 77 return _context.getActionParameter(name); 78 } 79 80 public Enumeration getParameterNames() 81 { 82 return _context.getActionParameterNames(); 83 } 84 85 public String [] getParameterValues(String name) 86 { 87 return _context.getActionParameterValues(name); 88 } 89 90 public InputStream getPortletInputStream() 91 throws IOException 92 { 93 return _context.getSubmitInputStream(); 94 } 95 96 public void setCharacterEncoding(String enc) 97 throws UnsupportedEncodingException 98 { 99 _context.setSubmitCharacterEncoding(enc); 100 } 101 102 public String getCharacterEncoding() 103 { 104 return _context.getSubmitCharacterEncoding(); 105 } 106 107 public BufferedReader getReader() 108 throws UnsupportedEncodingException , IOException 109 { 110 return _context.getSubmitReader(); 111 } 112 113 public String getContentType() 114 { 115 return _context.getSubmitContentType(); 116 } 117 118 public int getContentLength() 119 { 120 return _context.getSubmitContentLength(); 121 } 122 } 123 | Popular Tags |