1 16 package org.mortbay.jetty.servlet; 17 18 import java.io.Serializable ; 19 import java.util.EventListener ; 20 21 import javax.servlet.http.Cookie ; 22 import javax.servlet.http.HttpServletRequest ; 23 import javax.servlet.http.HttpSession ; 24 25 import org.mortbay.util.LifeCycle; 26 27 28 29 35 public interface SessionManager extends LifeCycle, Serializable 36 { 37 38 42 public final static String __SessionCookie= 43 System.getProperty("org.mortbay.jetty.servlet.SessionCookie","JSESSIONID"); 44 45 46 50 public final static String __SessionURL = 51 System.getProperty("org.mortbay.jetty.servlet.SessionURL","jsessionid"); 52 53 final static String __SessionUrlPrefix=";"+__SessionURL+"="; 54 55 56 61 public final static String __SessionDomain= 62 "org.mortbay.jetty.servlet.SessionDomain"; 63 64 65 70 public final static String __SessionPath= 71 "org.mortbay.jetty.servlet.SessionPath"; 72 73 74 79 public final static String __MaxAge= 80 "org.mortbay.jetty.servlet.MaxAge"; 81 82 83 public void initialize(ServletHandler handler); 84 85 86 public HttpSession getHttpSession(String id); 87 88 89 public HttpSession newHttpSession(HttpServletRequest request); 90 91 92 94 public boolean getSecureCookies(); 95 96 97 99 public boolean getHttpOnly(); 100 101 102 public int getMaxInactiveInterval(); 103 104 105 public void setMaxInactiveInterval(int seconds); 106 107 108 119 public void addEventListener(EventListener listener) 120 throws IllegalArgumentException ; 121 122 123 public void removeEventListener(EventListener listener); 124 125 126 127 131 public Cookie getSessionCookie(HttpSession session,boolean requestIsSecure); 132 133 134 135 136 public interface Session extends HttpSession 137 { 138 139 public boolean isValid(); 140 141 142 public void access(); 143 } 144 145 146 } 147 | Popular Tags |