1 16 package org.apache.myfaces.context.portlet; 17 18 import java.util.Enumeration ; 19 import javax.portlet.PortletRequest; 20 import org.apache.myfaces.context.servlet.AbstractAttributeMap; 21 22 32 public class RequestParameterValuesMap extends AbstractAttributeMap 33 { 34 private final PortletRequest _portletRequest; 35 36 RequestParameterValuesMap(PortletRequest portletRequest) 37 { 38 _portletRequest = portletRequest; 39 } 40 41 protected Object getAttribute(String key) 42 { 43 return _portletRequest.getParameterValues(key); 44 } 45 46 protected void setAttribute(String key, Object value) 47 { 48 throw new UnsupportedOperationException ( 49 "Cannot set PortletRequest ParameterValues"); 50 } 51 52 protected void removeAttribute(String key) 53 { 54 throw new UnsupportedOperationException ( 55 "Cannot remove PortletRequest ParameterValues"); 56 } 57 58 protected Enumeration getAttributeNames() 59 { 60 return _portletRequest.getParameterNames(); 61 } 62 } | Popular Tags |