KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > albel > tags > table > utils > HttpRequestAttributesMap


1 /*
2  * HttpRequestAttributesMap.java
3  *
4  * Created on Ketvirtadienis, 2004, Rugsėjo 9, 13.38
5  */

6
7 package albel.tags.table.utils;
8
9 /**
10  *
11  * @author alblau
12  */

13 public class HttpRequestAttributesMap implements java.util.Map JavaDoc
14 {
15     private javax.servlet.http.HttpServletRequest JavaDoc req;
16     
17     private HttpRequestAttributesMap(){}
18     /** Creates a new instance of HttpRequestAttributesMap */
19     public HttpRequestAttributesMap(javax.servlet.http.HttpServletRequest JavaDoc req)
20     {
21         this.req=req;
22     }
23     /**
24      *Operation can not be supported in this implementation
25      */

26     public void clear()
27     {
28     }
29     
30     public boolean containsKey(Object JavaDoc key)
31     {
32         return this.req.getAttribute(key.toString())!=null;
33     }
34     
35     /**
36      *Operation can not be supported in this implementation
37      */

38     public boolean containsValue(Object JavaDoc value)
39     {
40         return false;
41     }
42     /**
43      *Operation can not be supported in this implementation
44      */

45     public java.util.Set JavaDoc entrySet()
46     {
47         return null;
48     }
49     
50     public Object JavaDoc get(Object JavaDoc key)
51     {
52         return this.req.getAttribute(key.toString());
53     }
54     
55     public boolean isEmpty()
56     {
57         return req.getAttributeNames().hasMoreElements();
58     }
59     /**
60      *Operation can not be supported in this implementation
61      */

62     
63     public java.util.Set JavaDoc keySet()
64     {
65         return null;
66     }
67     /**
68      *Operation can not be supported in this implementation
69      */

70     
71     public Object JavaDoc put(Object JavaDoc key, Object JavaDoc value)
72     {
73         return null;
74     }
75     /**
76      *Operation can not be supported in this implementation
77      */

78     
79     public void putAll(java.util.Map JavaDoc t)
80     {
81     }
82     /**
83      *Operation can not be supported in this implementation
84      */

85     
86     public Object JavaDoc remove(Object JavaDoc key)
87     {
88         return null;
89     }
90     /**
91      *Operation can not be supported in this implementation
92      */

93     
94     public int size()
95     {
96         return -1;
97     }
98     /**
99      *Operation can not be supported in this implementation
100      */

101     
102     public java.util.Collection JavaDoc values()
103     {
104         return null;
105     }
106     
107 }
108
Popular Tags