KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > context > servlet > ServletSessionMock


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.context.servlet;
17
18 import java.util.Enumeration JavaDoc;
19 import java.util.HashMap JavaDoc;
20 import java.util.Map JavaDoc;
21
22 import javax.servlet.ServletContext JavaDoc;
23 import javax.servlet.http.HttpSession JavaDoc;
24 import javax.servlet.http.HttpSessionContext JavaDoc;
25
26
27 /**
28  * @author Anton Koinov (latest modification by $Author: matze $)
29  * @version $Revision: 1.3 $ $Date: 2004/10/13 11:50:59 $
30  * $Log: ServletSessionMock.java,v $
31  * Revision 1.3 2004/10/13 11:50:59 matze
32  * renamed packages to org.apache
33  *
34  * Revision 1.2 2004/07/01 22:00:57 mwessendorf
35  * ASF switch
36  *
37  * Revision 1.1 2004/05/10 05:30:15 dave0000
38  * Fix issue with setting Managed Bean to a wrong scope
39  *
40  */

41 public class ServletSessionMock implements HttpSession JavaDoc
42 {
43     private final Map JavaDoc _attributes = new HashMap JavaDoc();
44
45     public ServletSessionMock()
46     {
47         super();
48         // FIXME Auto-generated constructor stub
49
}
50
51     public long getCreationTime()
52     {
53         // FIXME Auto-generated method stub
54
return 0;
55     }
56
57     public String JavaDoc getId()
58     {
59         // FIXME Auto-generated method stub
60
return null;
61     }
62
63     public long getLastAccessedTime()
64     {
65         // FIXME Auto-generated method stub
66
return 0;
67     }
68
69     public ServletContext JavaDoc getServletContext()
70     {
71         // FIXME Auto-generated method stub
72
return null;
73     }
74
75     public void setMaxInactiveInterval(int arg0)
76     {
77         // FIXME Auto-generated method stub
78

79     }
80
81     public int getMaxInactiveInterval()
82     {
83         // FIXME Auto-generated method stub
84
return 0;
85     }
86
87     public HttpSessionContext JavaDoc getSessionContext()
88     {
89         // FIXME Auto-generated method stub
90
return null;
91     }
92
93     public Object JavaDoc getAttribute(String JavaDoc key)
94     {
95         return _attributes.get(key);
96     }
97
98     public Object JavaDoc getValue(String JavaDoc arg0)
99     {
100         // FIXME Auto-generated method stub
101
return null;
102     }
103
104     public Enumeration JavaDoc getAttributeNames()
105     {
106         // FIXME Auto-generated method stub
107
return null;
108     }
109
110     public String JavaDoc[] getValueNames()
111     {
112         // FIXME Auto-generated method stub
113
return null;
114     }
115
116     public void setAttribute(String JavaDoc key, Object JavaDoc value)
117     {
118         _attributes.put(key, value);
119     }
120
121     public void putValue(String JavaDoc arg0, Object JavaDoc arg1)
122     {
123         // FIXME Auto-generated method stub
124

125     }
126
127     public void removeAttribute(String JavaDoc arg0)
128     {
129         // FIXME Auto-generated method stub
130

131     }
132
133     public void removeValue(String JavaDoc arg0)
134     {
135         // FIXME Auto-generated method stub
136

137     }
138
139     public void invalidate()
140     {
141         // FIXME Auto-generated method stub
142

143     }
144
145     public boolean isNew()
146     {
147         // FIXME Auto-generated method stub
148
return false;
149     }
150
151 }
152
Popular Tags