public class HttpSessionAccess extends java.lang.Object implements ICCServerConstants
CLIENTJAVATYPE_FX, CLIENTJAVATYPE_SWING, CLIENTTYPE_APPLET, CLIENTTYPE_APPLICATION, CLIENTTYPE_BROWSER, CLIENTTYPE_RISC, CLIENTTYPE_UI5, CLIENTTYPE_WEBSTART, FOCUSSEQUENCE_FIX_PREFIX, QP_SUBPAGEID| Constructor and Description |
|---|
HttpSessionAccess() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkIfCurrentClientJavaTypeIsFX()
Check if current client is an FX client.
|
static boolean |
checkIfCurrentClientJavaTypeIsRisc()
Deprecated.
|
static boolean |
checkIfCurrentClientJavaTypeIsSwing()
Check if current client is a Swing client.
|
static boolean |
checkIfCurrentClientTypeIsRisc() |
static boolean |
checkIfCurrentClientTypeIsRisc(HttpServletRequest request) |
static boolean |
checkIfCurrentClientTypeIsUI5(HttpServletRequest request) |
static boolean |
checkIfCurrentHttpSessionWasDestroyedDuringInvokePhase()
During the invoke phase the application may destroy the current http
session (by calling the http-session's invalidate() method.
|
static boolean |
checkIfCurrentHttpSessionWasDestroyedDuringInvokePhase(HttpSession session) |
static boolean |
checkIfDialogSessionInLayoutEditorPreview()
Passes back information if the current dialog session is opened in the preview mode
of the editor.
|
static boolean |
checkIfInLayoutEditorPreview()
Passes back information if the current dialog is opened in the preview mode
of the editor.
|
static boolean |
checkIfJustProcessingRequest() |
static boolean |
checkIfRunningInEmbeddedMode()
Checks if the current request processing is executed in an embedded usage (stand alone)
environment.
|
static boolean |
checkIfRunningInMiniServerMode() |
static java.lang.String |
getCurrentClientId()
Passes back an id that is associated with the client.
|
static java.lang.String |
getCurrentClientJavaType()
Information about the client's Java technology.
|
static java.lang.String |
getCurrentClientJavaType(HttpServletRequest request)
Returns back client java type that is transferred via the http header.
|
static int |
getCurrentClientTimeZoneOffset()
The browser client sends its time zone offset as part of the http communication.
|
static java.lang.String |
getCurrentClientType()
Passes back the client type that is used by the current user.
|
static java.lang.String |
getCurrentClientType(HttpServletRequest request)
Passes back the client type that is used by the current user.
|
static ComponentDump |
getCurrentComponentDump(FacesContext context)
Internal use only.
|
static ComponentDump |
getCurrentComponentDump(ISessionAbstraction httpSession,
java.lang.String subpageId)
Internal use only.
|
static ISessionAbstraction |
getCurrentDialogSession()
The dialog session is the session that is associated with a dialog ("browser
tab instance") on client side.
|
static ISessionAbstraction |
getCurrentDialogSession(HttpSession session)
The dialog session is the session that is associated with a dialog ("browser
tab instance") on client side.
|
static ISessionAbstraction |
getCurrentDialogSession(HttpSession session,
java.lang.String subpageId) |
static HttpSession |
getCurrentHttpSession()
This session must only be called within the context of a
request processing!
|
static HttpSession |
getCurrentHttpSession(FacesContext context)
Same as
getCurrentHttpSession() - now with passing the FacesContext instance,
which guides to the http session. |
static HttpSession |
getCurrentHttpSession(ISessionContextProvider context) |
static HttpSession |
getCurrentHttpSessionIfAvailable(FacesContext context)
Same as
getCurrentHttpSession() - now with passing the FacesContext instance,
which guides to the http session and now without creating the http session if it does
not exist. |
static HttpSession |
getCurrentHttpSessionIfAvailable(ISessionContextProvider context) |
static HttpSessionListenerDelegator |
getCurrentHttpSessionListenerDelegator()
Internal use only.
|
static HttpSessionListenerDelegator |
getCurrentHttpSessionListenerDelegator(HttpSession session)
Internal use only.
|
static java.util.Locale |
getCurrentLocale()
Retrieve the Locale that is used on server side within the current
session.
|
static HttpServletRequest |
getCurrentRequest()
Returns the servlet request that triggered the current request processing.
|
static java.lang.String |
getCurrentRequestId()
Each request is associated with a unique id when entering the server side processing.
|
static HttpServletResponse |
getCurrentResponse()
Returns the servlet response of the current request processing.
|
static java.lang.String |
getCurrentStyle()
Returns the current style for the session.
|
static SubpageContext |
getCurrentSubpageContext()
Access to the subpage context, which is available if one Http-session is shared
across multiple browser instances - due to using cookies for session tracking.
|
static SubpageContext |
getCurrentSubpageContext(HttpSession session)
Access to the subpage context, which is available if one Http-session is shared
across multiple browser instances - due to using cookies for session tracking.
|
static IMethodBindingListener |
getMethodBindingListener()
Internal use only.
|
static ServletContext |
getServletContext()
Return the servlet context that was passed by the Servlet-container.
|
static java.lang.String |
getServletTempDirectory()
A servlet context provides access to a temporary directory
in which you can write or read data.
|
static java.lang.String |
getServletTempDirectory(ServletContext servletContext) |
static IValueBindingListener |
getValueBindingListener()
Internal use only.
|
static java.lang.String |
getWebApplicationName()
Returns name of the deployed web application using its context path
as base.
|
static void |
initialize(ServletContext servletContext) |
static void |
reloadClient()
Sends a signal to the client side that triggers a reload of the complete
page - within the current session (i.e. no new session is created).
|
static void |
reloadClient(HttpServletResponse response) |
static void |
setCurrentLocale(java.util.Locale l)
Sets the locale that is passed as locale for the current session.
|
static void |
setCurrentStyle(java.lang.String style)
Sets the current style for the session.
|
static void |
setMethodBindingListener(IMethodBindingListener mbl)
Internal use only.
|
static void |
setValueBindingListener(IValueBindingListener vbl)
Internal use only.
|
static void |
switchProfileModeOffForCurrentSession()
Switch profile mode off.
|
static void |
switchProfileModeOnForCurrentSession()
Switch profile mode on.
|
public static void initialize(ServletContext servletContext)
public static HttpSession getCurrentHttpSession()
getCurrentDialogSession() if you
want to access the session that is managed per browser tab instance! The
http session may sapn several browser tabs - if using COOKIEs for session
management!public static HttpSession getCurrentHttpSessionIfAvailable(FacesContext context)
getCurrentHttpSession() - now with passing the FacesContext instance,
which guides to the http session and now without creating the http session if it does
not exist.
getCurrentDialogSession() if you
want to access the session that is managed per browser tab instance! The
http session may sapn several browser tabs - if using COOKIEs for session
management!public static HttpSession getCurrentHttpSessionIfAvailable(ISessionContextProvider context)
public static HttpSession getCurrentHttpSession(FacesContext context)
getCurrentHttpSession() - now with passing the FacesContext instance,
which guides to the http session.
getCurrentDialogSession() if you
want to access the session that is managed per browser tab instance! The
http session may sapn several browser tabs - if using COOKIEs for session
management!public static HttpSession getCurrentHttpSession(ISessionContextProvider context)
public static ComponentDump getCurrentComponentDump(FacesContext context)
public static ComponentDump getCurrentComponentDump(ISessionAbstraction httpSession, java.lang.String subpageId)
public static HttpSessionListenerDelegator getCurrentHttpSessionListenerDelegator()
public static HttpSessionListenerDelegator getCurrentHttpSessionListenerDelegator(HttpSession session)
public static ServletContext getServletContext()
public static java.lang.String getWebApplicationName()
UsageWithoutSessionContext to indicate that you are running
in test mode - in this case "undefined" is returned.public static java.lang.String getServletTempDirectory()
public static java.lang.String getServletTempDirectory(ServletContext servletContext)
public static int getCurrentClientTimeZoneOffset()
public static HttpServletRequest getCurrentRequest()
public static HttpServletResponse getCurrentResponse()
public static void setValueBindingListener(IValueBindingListener vbl)
public static IValueBindingListener getValueBindingListener()
public static void setMethodBindingListener(IMethodBindingListener mbl)
public static IMethodBindingListener getMethodBindingListener()
public static boolean checkIfInLayoutEditorPreview()
checkIfDialogSessionInLayoutEditorPreview().public static boolean checkIfDialogSessionInLayoutEditorPreview()
checkIfInLayoutEditorPreview() this method
not only returns "true" for the first request of the dialog, but returns back "true"
for all subsequent requests as well.public static java.lang.String getCurrentRequestId()
public static boolean checkIfCurrentHttpSessionWasDestroyedDuringInvokePhase()
public static boolean checkIfCurrentHttpSessionWasDestroyedDuringInvokePhase(HttpSession session)
public static boolean checkIfRunningInEmbeddedMode()
public static boolean checkIfRunningInMiniServerMode()
public static boolean checkIfJustProcessingRequest()
public static java.lang.String getCurrentClientType()
public static java.lang.String getCurrentClientType(HttpServletRequest request)
ICCServerConstants for comparing the
result values.public static boolean checkIfCurrentClientTypeIsUI5(HttpServletRequest request)
public static boolean checkIfCurrentClientTypeIsRisc()
public static boolean checkIfCurrentClientTypeIsRisc(HttpServletRequest request)
public static java.lang.String getCurrentClientJavaType()
public static java.lang.String getCurrentClientJavaType(HttpServletRequest request)
public static boolean checkIfCurrentClientJavaTypeIsFX()
@Deprecated public static boolean checkIfCurrentClientJavaTypeIsRisc()
checkIfCurrentClientTypeIsRisc()
instead.)public static boolean checkIfCurrentClientJavaTypeIsSwing()
public static java.lang.String getCurrentClientId()
public static java.util.Locale getCurrentLocale()
public static void setCurrentLocale(java.util.Locale l)
public static void setCurrentStyle(java.lang.String style)
public static java.lang.String getCurrentStyle()
public static void reloadClient()
public static void reloadClient(HttpServletResponse response)
public static SubpageContext getCurrentSubpageContext()
public static SubpageContext getCurrentSubpageContext(HttpSession session)
public static ISessionAbstraction getCurrentDialogSession()
public static ISessionAbstraction getCurrentDialogSession(HttpSession session)
public static ISessionAbstraction getCurrentDialogSession(HttpSession session, java.lang.String subpageId)
public static void switchProfileModeOnForCurrentSession()
public static void switchProfileModeOffForCurrentSession()
Copyright © CaptainCasa Gmbh. All Rights Reserved.