public class Session
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getAuthoringMode(Database db)
Returns the current authoring mode regarding the given database.
|
int |
getAuthoringMode(java.lang.String dbKey)
Returns the current authoring mode regarding the given database.
|
java.lang.String |
getId()
Returns the id of the HTTP session, if available, else null
|
javax.servlet.http.HttpSession |
getJavaHttpSession()
Returns the JavaEE HTTP session object.
|
javax.websocket.Session |
getJavaWebSocketSession()
Returns the JavaEE WebSocket session object.
|
boolean |
isAvailable()
Returns if session data is available
|
boolean |
isHttpSessionAvailable() |
boolean |
isNew()
Returns if the session was just created and the client does not yet know about the session ID
This is only informative if the session type is HTTP, returns true on WebSocket sessions.
|
boolean |
isWebSocketSessionAvailable() |
public javax.servlet.http.HttpSession getJavaHttpSession() throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGException
public javax.websocket.Session getJavaWebSocketSession() throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGException
public int getAuthoringMode(Database db) throws de.innovationgate.webgate.api.WGException
db
- The databasede.innovationgate.webgate.api.WGException
public int getAuthoringMode(java.lang.String dbKey) throws de.innovationgate.webgate.api.WGException
db
- The databasede.innovationgate.webgate.api.WGException
public boolean isAvailable()
public boolean isNew() throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGException
public boolean isWebSocketSessionAvailable()
public boolean isHttpSessionAvailable()
public java.lang.String getId() throws de.innovationgate.webgate.api.WGException
de.innovationgate.webgate.api.WGException