01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.terracotta.session.util;
05:
06: import java.util.Enumeration;
07:
08: import javax.servlet.http.HttpSession;
09: import javax.servlet.http.HttpSessionContext;
10:
11: public class DefaultSessionContext implements HttpSessionContext {
12:
13: public final static HttpSessionContext theInstance = new DefaultSessionContext();
14:
15: private DefaultSessionContext() {
16: // prevent construction
17: }
18:
19: private final static Enumeration elements = new Enumeration() {
20: public boolean hasMoreElements() {
21: return false;
22: }
23:
24: public Object nextElement() {
25: return null;
26: }
27: };
28:
29: public Enumeration getIds() {
30: return elements;
31: }
32:
33: public HttpSession getSession(String arg0) {
34: return null;
35: }
36:
37: }
|