Package org.eclnt.jsfserver.session
Class SessionInfo
java.lang.Object
org.eclnt.jsfserver.session.SessionInfo
- All Implemented Interfaces:
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 Summary
Fields inherited from interface org.eclnt.jsfserver.util.ICCServerConstants
CLIENTJAVATYPE_FX, CLIENTJAVATYPE_SWING, CLIENTTYPE_APPLET, CLIENTTYPE_APPLICATION, CLIENTTYPE_BROWSER, CLIENTTYPE_RISC, CLIENTTYPE_UI5, CLIENTTYPE_WEBSTART, EXPLICIT_NULL, FOCUSSEQUENCE_FIX_PREFIX, HEADER_ATTRIBUTE_CLIENT, HEADER_ATTRIBUTE_CLIENTJAVATYPE, HEADER_ATTRIBUTE_COOKIESENABLED, HEADER_ATTRIBUTE_COUNTRY, HEADER_ATTRIBUTE_DEVICESCREENHEIGHT, HEADER_ATTRIBUTE_DEVICESCREENWIDTH, HEADER_ATTRIBUTE_DEVICETYPE, HEADER_ATTRIBUTE_LANGUAGE, HEADER_ATTRIBUTE_MEDIADEVICES, HEADER_ATTRIBUTE_ORIGINALURL, HEADER_ATTRIBUTE_PERFORMANCEDATA, HEADER_ATTRIBUTE_REQUESTID, HEADER_ATTRIBUTE_TIMEZONEOFFSET, HEADER_ATTRIBUTE_USERAGENT, HEADER_ATTRIBUTE_XFRAMEOPTIONS, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONID, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONREFERENCEURL, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONTRACKINGMODE, HEADER_RESPONSE_ATTRIBUTE_OVERRIDE, HEADER_RESPONSE_ATTRIBUTE_RELOAD, HEADER_RESPONSE_ATTRIBUTE_STYLE, INPUTMASK_VALUEMODE_WITHMASK, INPUTMASK_VALUEMODE_WITHOUTMASK, LAYOUTEXTENSION_JSP, LAYOUTEXTENSION_XML, QP_CCSTYLE, QP_KEEPDIALOGSESSION, QP_SUBPAGEID, SECURITY_ROLE_CCADMIN, SESSION_TRACKING_COOKIE, SESSION_TRACKING_URL, TEXTPANE_CONTENTTYPE_HTML, TEXTPANE_CONTENTTYPE_PLAIN
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Directly applies locale.void
applyLocaleSettingsAfterRendering
(javax.faces.context.FacesContext context) void
applyLocaleSettingsAfterRestoringView
(javax.faces.context.FacesContext context) Internal use only.
Reapplies locale setting from last roudtrip.void
applyLocaleSettingsBeforeRendering
(javax.faces.context.FacesContext context) Internal use only.
Applies locale settings to the application.void
boolean
If the client is a Java-client: indicator if the client type is a JavaFX client ("fx") or a JavaSwing client ("swing")..risc URL that was called within the client.int
static javax.servlet.http.HttpSession
Returns the http session.long
Server side focus management for thin client processing (ht* components).URL Parameters that were passed with the initial request.int
long
Creates a request focus counter that is used for the focus management of client side components.boolean
boolean
Profile mode - if true, then profile information is logged within this session.static String
static String
static SessionInfo
Get the session info for the current session.static SessionInfo
getSessionInstance
(javax.servlet.http.HttpSession hs, javax.servlet.http.HttpServletRequest request) getStyle()
Style reference to /ecntjsfserver/styles subdirectory.boolean
void
Increases the request focus counter.static void
initialize
(javax.servlet.ServletContext context) static SessionInfo
readSessionInfoFromFile
(String xmlFileName, String defaultStyle) This method is used within the layout editor environment only.static void
removeSessionInstance
(javax.servlet.http.HttpSession session, String subpageId) void
setClientIsInTestMode
(boolean clientIsInTestMode) void
setClientJavaType
(String clientJavaType) void
setClientTimeZoneOffset
(int clientTimeZoneOffset) void
setCurrentServerRequestId
(String value) void
setHtHighestFocusCounter
(long htHighestFocusCounter) void
setLastProcessedRequestId
(String value) void
setLastServerRequestId
(String value) void
setNagleResponseSize
(int nagleResponseSize) void
setPageaddonsAdded
(boolean value) void
setProfileMode
(boolean profileMode) void
void
setStyleAndReloadClient
(String value)
-
Field Details
-
m_styleWasChangedAtRuntime
public boolean m_styleWasChangedAtRuntime
-
-
Method Details
-
initialize
public static void initialize(javax.servlet.ServletContext context) -
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
-
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
-
setStyleAndReloadClient
-
getStyleWasChangedAtRuntime
public boolean getStyleWasChangedAtRuntime() -
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
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 callingRequestFocusManager.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
This method is used within the layout editor environment only. -
getClientIsInTestMode
public boolean getClientIsInTestMode() -
setClientIsInTestMode
public void setClientIsInTestMode(boolean clientIsInTestMode) -
getCurrentServerRequestId
-
setCurrentServerRequestId
-
getLastServerRequestId
-
setLastServerRequestId
-
setLastProcessedRequestId
-
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
URL Parameters that were passed with the initial request. -
getClientStartURL
.risc URL that was called within the client. -
getBufferedClientId
-
bufferClientIdAtEndOfFacesRequest
public void bufferClientIdAtEndOfFacesRequest() -
getSessionDefaultStyleForJavaClient
-
getSessionDefaultStyleForRISCClient
-
getClientJavaType
If the client is a Java-client: indicator if the client type is a JavaFX client ("fx") or a JavaSwing client ("swing"). -
setClientJavaType
-
getClientTimeZoneOffset
public int getClientTimeZoneOffset() -
setClientTimeZoneOffset
public void setClientTimeZoneOffset(int clientTimeZoneOffset)
-