1 5 6 package org.exoplatform.commons.map; 7 8 import javax.servlet.http.HttpServletRequest ; 9 import java.util.Enumeration ; 10 11 16 public class RequestParameterMap extends AbstractMap { 17 private HttpServletRequest request_; 18 19 public RequestParameterMap(HttpServletRequest request ) { 20 request_ = request; 21 } 22 23 protected Object getAttribute( String name ) { 24 return request_.getParameter( name ); 25 } 26 27 protected void setAttribute( String name, Object value ) { 28 throw new UnsupportedOperationException (); 29 } 30 31 protected void removeAttribute( String name ) { 32 throw new UnsupportedOperationException (); 33 } 34 35 protected Enumeration getAttributeNames() { 36 return request_.getParameterNames(); 37 } 38 } 39 | Popular Tags |