Class SessionInfo

java.lang.Object
org.eclnt.jsfserver.session.SessionInfo
All Implemented Interfaces:
Serializable, ICCServerConstants

public class SessionInfo extends Object implements Serializable, ICCServerConstants
Inside the normal dialog session management all information that is internally required by CaptainCasa Enterprise Client is kept in one instance of this class SessionInfo.
See Also:
  • Field Details

    • m_styleWasChangedAtRuntime

      public boolean m_styleWasChangedAtRuntime
  • Method Details

    • initialize

      public static void initialize(javax.servlet.ServletContext context)
    • getSessionInstance

      public static SessionInfo getSessionInstance()
      Get the session info for the current session. If does not exist yet then it is created. The configuration file /eclntjsfserver/config/sessiondefaults.xml controls the defaults that are loaded into SesssionInfo.

      This method accesses the FacesContext in order to find the http session. The mehtod must only be called during the processing of a JSF request. If calling from other scenarios (e.g. from own servlet) then use the method variant in which you can pass the session as explicit parameter.
    • removeSessionInstance

      public static void removeSessionInstance(javax.servlet.http.HttpSession session, String subpageId)
    • getSessionInstance

      public static SessionInfo getSessionInstance(javax.servlet.http.HttpSession hs, javax.servlet.http.HttpServletRequest request)
    • getCurrentHttpSession

      public static javax.servlet.http.HttpSession getCurrentHttpSession()
      Returns the http session. Only may be called during request processing.
    • setStyle

      public void setStyle(String value)
    • setStyleAndReloadClient

      public void setStyleAndReloadClient(String value)
    • getStyleWasChangedAtRuntime

      public boolean getStyleWasChangedAtRuntime()
    • getStyle

      public String getStyle()
      Style reference to /ecntjsfserver/styles subdirectory. When changing the style then changes will be applied for any new elements loaded. Existing elements will remain unchanged.
    • applyLocaleSettingsAfterRestoringView

      public void applyLocaleSettingsAfterRestoringView(javax.faces.context.FacesContext context)
      Internal use only.
      Reapplies locale setting from last roudtrip.
    • applyLastRoundtripLocale

      public void applyLastRoundtripLocale(Locale l)
      Directly applies locale. Only usable for special scenarios, in which e.g. the locale is applied from outside the request processing.
    • applyLocaleSettingsBeforeRendering

      public void applyLocaleSettingsBeforeRendering(javax.faces.context.FacesContext context)
      Internal use only.
      Applies locale settings to the application. This method is called at the beginning of the rendering phase.
    • applyLocaleSettingsAfterRendering

      public void applyLocaleSettingsAfterRendering(javax.faces.context.FacesContext context)
    • increaseRequestFocusCounter

      public void increaseRequestFocusCounter()
      Increases the request focus counter. This function is called at the beginning of each request processing. Consequence: the request-focus-counter obtains a new highest value which typically is requested by calling RequestFocusManager.getNewRequestFocusCounter(). All components that need to obtain the focus receive the same request focus counter within one request processing - at client side the first one will actually receive the focus.
    • getNewRequestFocusCounter

      public long getNewRequestFocusCounter()
      Creates a request focus counter that is used for the focus management of client side components.
    • setPageaddonsAdded

      public void setPageaddonsAdded(boolean value)
    • getPageaddonsAdded

      public boolean getPageaddonsAdded()
    • readSessionInfoFromFile

      public static SessionInfo readSessionInfoFromFile(String xmlFileName, String defaultStyle)
      This method is used within the layout editor environment only.
    • getClientIsInTestMode

      public boolean getClientIsInTestMode()
    • setClientIsInTestMode

      public void setClientIsInTestMode(boolean clientIsInTestMode)
    • getCurrentServerRequestId

      public String getCurrentServerRequestId()
    • setCurrentServerRequestId

      public void setCurrentServerRequestId(String value)
    • getLastServerRequestId

      public String getLastServerRequestId()
    • setLastServerRequestId

      public void setLastServerRequestId(String value)
    • setLastProcessedRequestId

      public void setLastProcessedRequestId(String value)
    • getLastProcessedRequestId

      public String getLastProcessedRequestId()
    • getNagleResponseSize

      public int getNagleResponseSize()
    • setNagleResponseSize

      public void setNagleResponseSize(int nagleResponseSize)
    • getHtHighestFocusCounter

      public long getHtHighestFocusCounter()
      Server side focus management for thin client processing (ht* components).
    • setHtHighestFocusCounter

      public void setHtHighestFocusCounter(long htHighestFocusCounter)
    • getProfileMode

      public boolean getProfileMode()
      Profile mode - if true, then profile information is logged within this session.
    • setProfileMode

      public void setProfileMode(boolean profileMode)
    • getInitialURLParameters

      public Map<String,String> getInitialURLParameters()
      URL Parameters that were passed with the initial request.
    • getClientStartURL

      public String getClientStartURL()
      .risc URL that was called within the client.
    • getBufferedClientId

      public String getBufferedClientId()
    • bufferClientIdAtEndOfFacesRequest

      public void bufferClientIdAtEndOfFacesRequest()
    • getSessionDefaultStyleForJavaClient

      public static String getSessionDefaultStyleForJavaClient()
    • getSessionDefaultStyleForRISCClient

      public static String getSessionDefaultStyleForRISCClient()
    • getClientJavaType

      public String getClientJavaType()
      If the client is a Java-client: indicator if the client type is a JavaFX client ("fx") or a JavaSwing client ("swing").
    • setClientJavaType

      public void setClientJavaType(String clientJavaType)
    • getClientTimeZoneOffset

      public int getClientTimeZoneOffset()
    • setClientTimeZoneOffset

      public void setClientTimeZoneOffset(int clientTimeZoneOffset)