1 2 26 27 28 29 30 package com.lutris.appserver.server.session; 31 32 import java.util.Date ; 33 import java.util.Enumeration ; 34 35 import com.lutris.appserver.server.httpPresentation.HttpPresentationComms; 36 import com.lutris.appserver.server.user.User; 37 38 39 49 public interface SessionManager { 50 54 public static final String ENCODE_URL_NEVER = "Never"; 55 59 public static final String ENCODE_URL_ALWAYS = "Always"; 60 66 public static final String ENCODE_URL_AUTO = "Auto"; 67 68 69 70 79 public Session createSession() throws SessionException; 80 81 92 public Session createSession(String ipPortToken) throws SessionException; 93 94 105 106 public Session createSession (HttpPresentationComms comms) throws SessionException; 107 108 109 110 117 public void deleteSession(Session session) throws SessionException; 118 119 127 public void deleteSession(String sessionKey) throws SessionException; 128 129 141 public boolean sessionExists(String sessionKey) throws SessionException; 142 143 158 public Session getSession(String sessionKey) throws SessionException; 159 160 161 162 180 public Session getSession (Thread thread, String sessionKey) throws SessionException; 181 182 202 203 204 public Session getSession (Thread thread, String sessionKey, HttpPresentationComms comms) throws SessionException; 205 206 207 208 217 public Enumeration getSessionKeys(User user) throws SessionException; 218 219 230 public void passivateSession (Thread thread, String sessionKey) throws SessionException; 231 232 233 234 241 public int activeSessionCount() throws SessionException; 242 243 252 public int maxSessionCount(); 253 254 260 public Date maxSessionCountDate(); 261 262 269 public void resetMaxSessionCount() throws SessionException; 270 271 278 public Enumeration getSessionKeys() throws SessionException; 279 280 284 public void shutdown(); 285 286 287 288 292 public String getEncodeUrlState (); 293 } 294 295 296 297 | Popular Tags |