public final class Governor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Governor.SessionState |
Constructor and Description |
---|
Governor() |
Modifier and Type | Method and Description |
---|---|
static void |
exitInWaiting(javax.servlet.http.HttpSession httpSession,
javax.websocket.Session session)
Called when the start page is closed and user isn't waiting, remove the user
from list
|
static NegotiationRoom |
findUserByHttpSession(javax.servlet.http.HttpSession httpSession) |
static Governor.SessionState |
getSessionState(javax.servlet.http.HttpSession httpSession) |
static boolean |
register(javax.servlet.http.HttpSession httpSession,
javax.websocket.Session session) |
static void |
removeUser(javax.servlet.http.HttpSession httpSession)
called when a user closes the negotiating page before it finishes
|
static void |
startNegotiating(javax.servlet.http.HttpSession httpSession) |
public static boolean register(javax.servlet.http.HttpSession httpSession, javax.websocket.Session session)
public static void exitInWaiting(javax.servlet.http.HttpSession httpSession, javax.websocket.Session session)
public static NegotiationRoom findUserByHttpSession(javax.servlet.http.HttpSession httpSession)
public static Governor.SessionState getSessionState(javax.servlet.http.HttpSession httpSession)
public static void startNegotiating(javax.servlet.http.HttpSession httpSession)
public static void removeUser(javax.servlet.http.HttpSession httpSession)
httpSession
-