1 16 package org.mortbay.jetty.servlet; 17 18 import java.util.HashMap ; 19 import java.util.Map ; 20 import java.util.Random ; 21 22 import javax.servlet.http.HttpServletRequest ; 23 24 25 26 31 public class HashSessionManager extends AbstractSessionManager 32 { 33 34 public HashSessionManager() 35 { 36 super(); 37 } 38 39 40 public HashSessionManager(Random random) 41 { 42 super(random); 43 } 44 45 46 protected AbstractSessionManager.Session newSession(HttpServletRequest request) 47 { 48 return new Session(request); 49 } 50 51 52 53 54 protected class Session extends AbstractSessionManager.Session 55 { 56 57 protected Session(HttpServletRequest request) 58 { 59 super(request); 60 } 61 62 63 protected Map newAttributeMap() 64 { 65 return new HashMap (3); 66 } 67 } 68 69 } 70 | Popular Tags |