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