KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > terracotta > session > util > DefaultSessionContext


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.terracotta.session.util;
5
6 import java.util.Enumeration JavaDoc;
7
8 import javax.servlet.http.HttpSession JavaDoc;
9 import javax.servlet.http.HttpSessionContext JavaDoc;
10
11 public class DefaultSessionContext implements HttpSessionContext JavaDoc {
12
13   public final static HttpSessionContext JavaDoc theInstance = new DefaultSessionContext();
14
15   private DefaultSessionContext() {
16     // prevent construction
17
}
18
19   private final static Enumeration JavaDoc elements = new Enumeration JavaDoc() {
20                                               public boolean hasMoreElements() {
21                                                 return false;
22                                               }
23
24                                               public Object JavaDoc nextElement() {
25                                                 return null;
26                                               }
27                                             };
28
29   public Enumeration JavaDoc getIds() {
30     return elements;
31   }
32
33   public HttpSession JavaDoc getSession(String JavaDoc arg0) {
34     return null;
35   }
36
37 }
38
Popular Tags