Class ClientReqSession
java.lang.Object
com.inductiveautomation.ignition.gateway.clientcomm.ClientReqSession
- All Implemented Interfaces:
- javax.servlet.http.HttpSession
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringHolds the Java Version of the client JVMstatic final Stringtrueif the session belongs to a designer.static final Stringstatic final StringHolds the mutability mode of the session.static final StringThe name (a String) of the project that this session has loadedstatic final StringThis is the address of the client, a String, as returned byServletRequest.getRemoteAddr()static final StringThis holds the self-reported "hostname" (a String) that the client sent when it first logged in.static final StringHolds theTimeZonethat the client JVM is instatic final StringTheClientReqSession.Userthe session belongs to.static final StringThe username (String) of theClientReqSession.Userthe session belongs to.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidaddNotification(String moduleId, String messageType, 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 Localeabstract MutabilityModeabstract StringReturns a unique but irreversible hash of the true idabstract intgetScope()Returns this client's ApplicationScope, either Client or Designerbooleanabstract booleanisValid()protected static voidset(ClientReqSession session) Sets session for calling thread.abstract voidsetMessageFilter(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, waitMethods inherited from interface javax.servlet.http.HttpSessiongetAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeAttribute, removeValue, setAttribute, setMaxInactiveInterval
- 
Field Details- 
SESSION_IS_DESIGNERtrueif the session belongs to a designer.- See Also:
 
- 
SESSION_USERNAMEThe username (String) of theClientReqSession.Userthe session belongs to.- See Also:
 
- 
SESSION_USERTheClientReqSession.Userthe session belongs to.- See Also:
 
- 
SESSION_PROJECT_NAMEThe name (a String) of the project that this session has loaded- See Also:
 
- 
SESSION_REMOTE_ADDRThis is the address of the client, a String, as returned byServletRequest.getRemoteAddr()- See Also:
 
- 
SESSION_MEM_USED- See Also:
 
- 
SESSION_REMOTE_HOSTThis 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:
 
- 
SESSION_TIMEZONEHolds theTimeZonethat the client JVM is in- See Also:
 
- 
SESSION_CLIENT_JVM_VERSIONHolds the Java Version of the client JVM- See Also:
 
- 
SESSION_MUTABILITYHolds the mutability mode of the session.- See Also:
 
 
- 
- 
Constructor Details- 
ClientReqSessionpublic ClientReqSession()
 
- 
- 
Method Details- 
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
 
- 
getGet the session for the calling thread.- Returns:
- GWSession for calling thread
 
- 
setSets session for calling thread.- Parameters:
- session- The session
 
- 
unsetprotected static void unset()Clears the session for calling thread.
- 
getLocale
- 
addNotificationAdds 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:
 
- 
getPublicIdReturns a unique but irreversible hash of the true id
- 
setMessageFilterSets a named filter on this session. Setting to null is the same as removing the filter.
- 
isValidpublic abstract boolean isValid()
- 
getMutabilityMode
 
-