1 17 18 19 package org.apache.catalina; 20 21 22 import java.security.Principal ; 23 import java.util.Iterator ; 24 25 import javax.servlet.http.HttpSession ; 26 27 28 36 37 public interface Session { 38 39 40 42 43 46 public static final String SESSION_CREATED_EVENT = "createSession"; 47 48 49 52 public static final String SESSION_DESTROYED_EVENT = "destroySession"; 53 54 55 58 public static final String SESSION_ACTIVATED_EVENT = "activateSession"; 59 60 61 64 public static final String SESSION_PASSIVATED_EVENT = "passivateSession"; 65 66 67 69 70 74 public String getAuthType(); 75 76 77 83 public void setAuthType(String authType); 84 85 86 89 public long getCreationTime(); 90 91 92 98 public void setCreationTime(long time); 99 100 101 104 public String getId(); 105 106 107 110 public String getIdInternal(); 111 112 113 118 public void setId(String id); 119 120 121 126 public String getInfo(); 127 128 129 135 public long getLastAccessedTime(); 136 137 141 public long getLastAccessedTimeInternal(); 142 143 146 public Manager getManager(); 147 148 149 154 public void setManager(Manager manager); 155 156 157 162 public int getMaxInactiveInterval(); 163 164 165 172 public void setMaxInactiveInterval(int interval); 173 174 175 180 public void setNew(boolean isNew); 181 182 183 190 public Principal getPrincipal(); 191 192 193 201 public void setPrincipal(Principal principal); 202 203 204 208 public HttpSession getSession(); 209 210 211 216 public void setValid(boolean isValid); 217 218 219 222 public boolean isValid(); 223 224 225 227 228 233 public void access(); 234 235 236 239 public void addSessionListener(SessionListener listener); 240 241 242 245 public void endAccess(); 246 247 248 252 public void expire(); 253 254 255 261 public Object getNote(String name); 262 263 264 268 public Iterator getNoteNames(); 269 270 271 275 public void recycle(); 276 277 278 284 public void removeNote(String name); 285 286 287 290 public void removeSessionListener(SessionListener listener); 291 292 293 300 public void setNote(String name, Object value); 301 302 303 } 304 | Popular Tags |