1 4 package com.terracotta.session.util; 5 6 import java.util.Enumeration ; 7 8 import javax.servlet.http.HttpSession ; 9 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 } 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 } 38 | Popular Tags |