KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > commons > map > RequestParameterMap


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5
6 package org.exoplatform.commons.map;
7
8 import javax.servlet.http.HttpServletRequest JavaDoc ;
9 import java.util.Enumeration JavaDoc;
10
11 /**
12  * @author Ove Ranheim (oranheim@users.sourceforge.net)
13  * @since Nov 6, 2003 6:32:49 PM
14  *
15  */

16 public class RequestParameterMap extends AbstractMap {
17   private HttpServletRequest JavaDoc request_;
18
19   public RequestParameterMap(HttpServletRequest JavaDoc request ) {
20     request_ = request;
21   }
22
23   protected Object JavaDoc getAttribute( String JavaDoc name ) {
24     return request_.getParameter( name );
25   }
26
27   protected void setAttribute( String JavaDoc name, Object JavaDoc value ) {
28     throw new UnsupportedOperationException JavaDoc();
29   }
30
31   protected void removeAttribute( String JavaDoc name ) {
32     throw new UnsupportedOperationException JavaDoc();
33   }
34
35   protected Enumeration JavaDoc getAttributeNames() {
36     return request_.getParameterNames();
37   }
38 }
39
Popular Tags