Class ClientReqSession
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.clientcomm.ClientReqSession
 
- 
- All Implemented Interfaces:
- javax.servlet.http.HttpSession
 
 public abstract class ClientReqSession extends java.lang.Object implements javax.servlet.http.HttpSession
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceClientReqSession.User
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringSESSION_CLIENT_JVM_VERSIONHolds the Java Version of the client JVMstatic java.lang.StringSESSION_IS_DESIGNERtrueif the session belongs to a designer.static java.lang.StringSESSION_MEM_USEDstatic java.lang.StringSESSION_PROJECT_NAMEThe name (a String) of the project that this session has loadedstatic java.lang.StringSESSION_REMOTE_ADDRThis is the address of the client, a String, as returned byServletRequest.getRemoteAddr()static java.lang.StringSESSION_REMOTE_HOSTThis holds the self-reported "hostname" (a String) that the client sent when it first logged in.static java.lang.StringSESSION_TIMEZONEHolds theTimeZonethat the client JVM is instatic java.lang.StringSESSION_USERTheClientReqSession.Userthe session belongs to.static java.lang.StringSESSION_USERNAMEThe username (String) of theClientReqSession.Userthe session belongs to.
 - 
Constructor SummaryConstructors Constructor Description ClientReqSession()
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddNotification(java.lang.String moduleId, java.lang.String messageType, java.io.Serializable message)Adds a notification message that will be sent down to this session's client and delivered as a PushNotification.static booleanexists()Checks if theSessionthreadlocal is set in this threadstatic ClientReqSessionget()Get the session for the calling thread.abstract java.util.LocalegetLocale()abstract java.lang.StringgetPublicId()Returns a unique but irreversible hash of the true idabstract intgetScope()Returns this client's ApplicationScope, either Client or DesignerbooleanisDesigner()abstract booleanisValid()protected static voidset(ClientReqSession session)Sets session for calling thread.abstract voidsetMessageFilter(java.lang.String name, MessageFilter filter)Sets a named filter on this session.protected static voidunset()Clears the session for calling thread.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface javax.servlet.http.HttpSessiongetAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeAttribute, removeValue, setAttribute, setMaxInactiveInterval
 
- 
 
- 
- 
- 
Field Detail- 
SESSION_IS_DESIGNERpublic static final java.lang.String SESSION_IS_DESIGNER trueif the session belongs to a designer.- See Also:
- Constant Field Values
 
 - 
SESSION_USERNAMEpublic static final java.lang.String SESSION_USERNAME The username (String) of theClientReqSession.Userthe session belongs to.- See Also:
- Constant Field Values
 
 - 
SESSION_USERpublic static final java.lang.String SESSION_USER TheClientReqSession.Userthe session belongs to.- See Also:
- Constant Field Values
 
 - 
SESSION_PROJECT_NAMEpublic static final java.lang.String SESSION_PROJECT_NAME The name (a String) of the project that this session has loaded- See Also:
- Constant Field Values
 
 - 
SESSION_REMOTE_ADDRpublic static final java.lang.String SESSION_REMOTE_ADDR This is the address of the client, a String, as returned byServletRequest.getRemoteAddr()- See Also:
- Constant Field Values
 
 - 
SESSION_MEM_USEDpublic static final java.lang.String SESSION_MEM_USED - See Also:
- Constant Field Values
 
 - 
SESSION_REMOTE_HOSTpublic static final java.lang.String SESSION_REMOTE_HOST This holds the self-reported "hostname" (a String) that the client sent when it first logged in. This is whatever:InetAddress.getLocalHost().getHostName() returns from the client JVM. - See Also:
- Constant Field Values
 
 - 
SESSION_TIMEZONEpublic static final java.lang.String SESSION_TIMEZONE Holds theTimeZonethat the client JVM is in- See Also:
- Constant Field Values
 
 - 
SESSION_CLIENT_JVM_VERSIONpublic static final java.lang.String SESSION_CLIENT_JVM_VERSION Holds the Java Version of the client JVM- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
existspublic static boolean exists() Checks if theSessionthreadlocal is set in this thread- Returns:
- true if Session.get()can return the instance of session, false otherwise
 
 - 
getpublic static ClientReqSession get() Get the session for the calling thread.- Returns:
- GWSession for calling thread
 
 - 
setprotected static void set(ClientReqSession session) Sets session for calling thread.- Parameters:
- session- The session
 
 - 
unsetprotected static void unset() Clears the session for calling thread.
 - 
getLocalepublic abstract java.util.Locale getLocale() 
 - 
addNotificationpublic abstract void addNotification(java.lang.String moduleId, java.lang.String messageType, java.io.Serializable message)Adds a notification message that will be sent down to this session's client and delivered as a PushNotification.
 - 
isDesignerpublic boolean isDesigner() 
 - 
getScopepublic abstract int getScope() Returns this client's ApplicationScope, either Client or Designer- See Also:
- ApplicationScope
 
 - 
getPublicIdpublic abstract java.lang.String getPublicId() Returns a unique but irreversible hash of the true id
 - 
setMessageFilterpublic abstract void setMessageFilter(java.lang.String name, MessageFilter filter)Sets a named filter on this session. Setting to null is the same as removing the filter.
 - 
isValidpublic abstract boolean isValid() 
 
- 
 
-