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 23 24 34 public class RequestHeaderMap extends AbstractAttributeMap 35 { 36 private final PortletRequest _portletRequest; 37 38 RequestHeaderMap(PortletRequest portletRequest) 39 { 40 _portletRequest = portletRequest; 41 } 42 43 protected Object getAttribute(String key) 44 { 45 return _portletRequest.getProperty(key); 46 } 47 48 protected void setAttribute(String key, Object value) 49 { 50 throw new UnsupportedOperationException ( 51 "Cannot set PortletRequest property"); 52 } 53 54 protected void removeAttribute(String key) 55 { 56 throw new UnsupportedOperationException ( 57 "Cannot remove PortletRequest property"); 58 } 59 60 protected Enumeration getAttributeNames() 61 { 62 return _portletRequest.getPropertyNames(); 63 } 64 } 65 | Popular Tags |