public class SessionUtils
extends java.lang.Object
CommonSession
interface (or one of its super interfaces) and are not statically
implemented by the classes used by the asHandle().| Modifier and Type | Class and Description |
|---|---|
private static class |
SessionUtils.WorkArea
Stores global data relating to the state of the current context.
|
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.Object |
DEVICE_ID_LOCK
Lock for synchronizing device id writes.
|
private static CentralLogger |
LOG
Logger
|
private static ContextLocal<StartupParameters> |
startupParameters
Context local proxy that allows the startup parameters to be pushed from server to client.
|
private static ContextLocal<SessionUtils.WorkArea> |
work
Context local proxy that allows SESSION attributes to be pushed from server to client.
|
| Constructor and Description |
|---|
SessionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
_isRemote()
Indicates if the session is for the context of an appserver.
|
static StartupParameters |
_startupParameters()
Get the startup parameters.
|
static handle |
asHandle()
Get a the instance for the SESSION system handle.
|
(package private) static void |
clientDisconnected()
Mark this context as the client has disconnected (due to an abend, socket disconnect, etc).
|
static object<? extends OerequestInfo> |
currentRequestInfo()
Get the CURRENT-REQUEST-INFO attribute of this session.
|
static object<? extends OerequestInfo> |
currentResponseInfo()
Get the CURRENT-RESPONSE-INFO attribute of this session.
|
static logical |
export(character procList)
Method that specifies the remote procedures the client can execute from the AppServer
session.
|
static logical |
export(java.lang.String procList)
Method that specifies the remote procedures the client can execute from the AppServer
session.
|
static handle |
firstBuffer()
Returns the handle for the first dynamic buffer in the first table containing a dynamic
buffer.
|
static handle |
firstChild()
Returns the handle for the first window in the session.
|
static object<?> |
firstObject()
Get the FIRST-OBJECT attribute of this session.
|
static handle |
firstQuery()
Returns the handle for the first created dynamic query.
|
static handle |
firstServer()
Get the FIRST-SERVER attribute of this session.
|
static handle |
firstServerSocket()
Get the FIRST-SERVER-SOCKET attribute of this session.
|
static handle |
firstSocket()
Get the FIRST-SOCKET attribute of this session.
|
static void |
forkNewSession(character cfgOverrides,
character authBlob)
Starts a new forked session.
|
static void |
forkNewSession(character cfgOverrides,
java.lang.String authBlob)
Starts a new forked session.
|
static void |
forkNewSession(java.lang.String cfgOverrides,
character authBlob)
Starts a new forked session.
|
static void |
forkNewSession(java.lang.String cfgOverrides,
java.lang.String authBlob)
Starts a new forked session.
|
static character |
getAuthBlob()
Returns the authentication blob content.
|
static character |
getBrowserExternalIp()
Returns the external IP of the end-user machine, where the js client runs.
|
static integer |
getBrowserPort()
Returns the TCP port of the end-user machine, on which the WebSocket runs in the browser.
|
static integer |
getBrowserTimezone()
Returns the offset in minutes from UTC for the browser timezone.
|
static character |
getClientExternalIp()
Returns the external IP of the client machine.
|
static datetime |
getClientIpCaptureTime()
Returns the UTC datetime of the capture time for CLIENT-EXTERNAL-IP.
|
static integer |
getClientPort()
Returns the TCP port of the client machine.
|
static integer |
getClientTimezone()
Returns the offset in minutes from UTC for the client machine timezone.
|
static character |
getClientType()
This is a helper method returning the value of OEClientType for the session's OeversionInfo.
|
static ClientType[] |
getClientTypes()
This is a helper method returning the value of OEClientType for the session's OeversionInfo.
|
static character |
getContextHelpFile()
Get the CONTEXT-HELP-FILE attribute of this session.
|
static character |
getDateFormat()
Gets the order of date components (SESSION:DATE-FORMAT) for conversion to/from strings.
|
static character |
getDeviceId()
Returns the device ID.
|
static long |
getExitCode()
Get the value of SESSION:EXIT-CODE attribute.
|
static handle |
getFirstDataSet()
Obtain a handle to the first dynamic
DataSet object created in the current session. |
static handle |
getFirstDataSource()
Obtain a handle to the first dynamic
DataSource object created in the current session. |
static character |
getICFParameter()
Get the ICFPARAMETER attribute of this session.
|
static datetime |
getIpCaptureTime()
Returns the UTC datetime of the capture time for BROWSER-EXTERNAL-IP.
|
static character |
getLoginParam(character paramName)
Returns the first value of the login parameter.
|
static character |
getLoginParam(character paramName,
int oeIndex)
Returns the index value of the login parameter.
|
static character |
getLoginParam(character paramName,
integer oeIndex)
Returns the index value of the login parameter.
|
static character |
getLoginParam(java.lang.String paramName)
Returns the first value of the login parameter.
|
static character |
getLoginParam(java.lang.String paramName,
int oeIndex)
Returns the index value of the login parameter.
|
static character |
getLoginParam(java.lang.String paramName,
integer oeIndex)
Returns the index value of the login parameter.
|
static java.util.Map<java.lang.String,java.lang.String[]> |
getLoginParams()
Returns all login parameters.
|
static integer |
getMultitaskingInterval()
Get the value of SESSION:MULTITASKING-INTERVAL attribute.
|
static character |
getParameter()
Get the value of the PARAMETER attribute, which is set to the value of the 4GL
-param command line option specified for the current session. |
static integer |
getPixelsPerColumn()
Get the PIXELS-PER-COLUMN attribute of this session.
|
static integer |
getPixelsPerRow()
Get the PIXELS-PER-ROW attribute of this session.
|
static integer |
getPrinterControlHandle()
Get the state of SESSION:PRINTER-CONTROL-HANDLE attribute.
|
static integer |
getPrinterHDC()
Get the state of SESSION:PRINTER-HDC attribute.
|
static character |
getPrinterName()
Get the state of SESSION:PRINTER-NAME attribute.
|
static character |
getPrinterPort()
Get the state of SESSION:PRINTER-PORT attribute.
|
static character |
getPrinters()
The SESSION:GET-PRINTERS method.
|
static character |
getRelatedSessionId()
Returns the unique ID of the original session that was forked.
|
static integer |
getScreenColorDepth()
Returns the client screen color depth.
|
static integer |
getScreenHeight()
Returns the client screen height.
|
static decimal |
getScreenScalingFactor()
Returns the client screen scaling factor.
|
static integer |
getScreenWidth()
Returns the client screen width.
|
static logical |
getServerConnectionBoundRequest()
Get the SERVER-CONNECTION-BOUND-REQUEST attribute of this session.
|
static character |
getServerConnectionContext()
Get the SERVER-CONNECTION-CONTEXT attribute of this session.
|
static character |
getServerConnectionId()
Get the value of SESSION:SERVER-CONNECTION-ID attribute.
|
static character |
getServerOperatingMode()
Method implementation for getting the SERVER-OPERATING-MODE attribute of the session handle.
|
static integer |
getSessionDisplayTimeZone()
Obtains the currently configured DISPLAY-TIMEZONE attribute for the current
user's context.
|
static character |
getSessionId()
Returns the session unique identifier.
|
static character |
getSessionTimeSource()
Obtains the currently configured TIME-SOURCE attribute for the current
user's context.
|
static integer |
getSessionTimeZone()
Accesses the SESSION:TIMEZONE used as the default offset in minutes from
UTC for this user's context.
|
static logical |
getSessionTooltips()
Accesses the SESSION:TOOLTIPS attribute for this session.
|
static character |
getStartupParameters()
Get the state of SESSION:STARTUP-PARAMETERS attribute.
|
static java.lang.String |
getStorageId()
Getter for the storage ID of the end-user (available with SSO).
|
static character |
getSuppressWarningsList()
Get the SUPPRESS-WARNINGS-LIST of this session.
|
static character |
getTerminationHook()
Get the TERMINATION-HOOK attribute of this session.
|
static character |
getUserAgent()
Returns the user agent info of the browser where the js client runs.
|
static logical |
getWebUploadError()
Returns {code true} when the current direct upload operation ended with
an error,
false otherwise. |
static character |
getWebUploadFiles()
Returns comma delimited string of local file system paths of
the files uploaded during direct upload or a comma delimited string
of file names chosen during direct file upload.
|
static integer |
getYearOffset()
Implementation of SESSION:YEAR-OFFSET attribute getter.
|
static java.lang.Long |
id()
Get this resource's ID.
|
static void |
id(long id)
Set this resource's ID.
|
static logical |
is3D()
Get THREE-D attribute value for SESSION handle.
|
static logical |
isClientDisconnected()
Get the CLIENT-DISCONNECTED attribute of this session.
|
static logical |
isDataEntryReturn()
Get the state of SESSION:DATA-ENTRY-RETURN attribute.
|
static logical |
isDebugAlert()
Get the state of SESSION:DEBUG-ALERT attribute.
|
static logical |
isErrorStackTrace()
Get the ERROR-STACK-TRACE attribute of this session.
|
static logical |
isRemote()
Indicates if the session is for the context of an appserver.
|
static logical |
isServerConnectionBound()
Get the SERVER-CONNECTION-BOUND attribute of this session.
|
static logical |
isSuppressWarnings()
Get the state of SESSION:SUPPRESS-WARNINGS attribute.
|
static logical |
isSystemAlertBoxes()
Get the state of SESSION:SYSTEM-ALERT-BOXES attribute.
|
static handle |
lastChild()
Returns the handle for the last window in the session.
|
static object<?> |
lastObject()
Get the LAST-OBJECT attribute of this session.
|
static handle |
lastServer()
Get the LAST-SERVER attribute of this session.
|
static handle |
lastServerSocket()
Get the LAST-SERVER-SOCKET attribute of this session.
|
static handle |
lastSocket()
Get the LAST-SOCKET attribute of this session.
|
static logical |
loadIcon(character iconName)
Set the state of SESSION:LOAD-ICON attribute.
|
static logical |
loadIcon(java.lang.String iconName)
Set the state of SESSION:LOAD-ICON attribute.
|
static object<? extends OeversionInfo> |
localVersionInfo()
Get the LOCAL-VERSION-INFO attribute of this session.
|
static void |
readOnlyError(java.lang.String attribute)
API needed to implement read-only attribute assignment (a 4GL "feature").
|
static void |
readOnlyError(java.lang.String attribute,
java.lang.Object expr)
Emitted and to be used only in cases the attribute is read-only.
|
static character |
resourceType()
Get the type of its associated handle.
|
static void |
set3D(logical value)
Set THREE-D attribute value for SESSION handle.
|
static void |
setAuthBlob(java.lang.String authBlob)
Sets the authentication blob content.
|
static void |
setBrowserExternalIp(java.lang.String browserExternalIp)
Setter for the external IP of the end-user machine, where the js client runs.
|
static void |
setBrowserPort(int browserPort)
Setter for the TCP port of the end-user machine, on which the WebSocket runs in the browser.
|
static void |
setBrowserTimezone(int browserTimezone)
Setter for the offset in minutes from UTC for the browser timezone.
|
static void |
setClientExternalIp(java.lang.String clientExternalIp)
Setter for the external IP of the client machine.
|
static void |
setClientIpCaptureTime(long ipCaptureTimestamp)
Setter for the datetime of the capture time for CLIENT-EXTERNAL-IP.
|
static void |
setClientPort(int clientPort)
Setter for the TCP port of the client machine.
|
static void |
setClientTimezone(int clientTimezone)
Setter for the offset in minutes from UTC for the client machine timezone.
|
static void |
setClientTypes(ClientType... clientTypes)
This is a helper method setting the value of OEClientType for the session's OeversionInfo.
|
static void |
setContextHelpFile(character file)
Set the CONTEXT-HELP-FILE attribute of this session.
|
static void |
setContextHelpFile(java.lang.String file)
Set the CONTEXT-HELP-FILE attribute of this session.
|
static void |
setDataEntryReturn(boolean on)
Set the state of SESSION:DATA-ENTRY-RETURN attribute.
|
static void |
setDataEntryReturn(logical on)
Set the state of SESSION:DATA-ENTRY-RETURN attribute.
|
static void |
setDateFormat(character dateFormat)
Sets the order of date components (SESSION:DATE-FORMAT) for conversion to/from strings.
|
static void |
setDateFormat(java.lang.String dateFormat)
Sets the order of date components (SESSION:DATE-FORMAT) for conversion to/from strings.
|
static void |
setDebugAlert(boolean on)
Set the state of SESSION:DEBUG-ALERT attribute.
|
static void |
setDebugAlert(logical on)
Set the state of SESSION:DEBUG-ALERT attribute.
|
static void |
setDeviceId(java.lang.String deviceId)
Sets the device ID.
|
static void |
setErrorStackTrace(boolean state)
Set the ERROR-STACK-TRACE attribute of this session.
|
static void |
setErrorStackTrace(logical state)
Set the ERROR-STACK-TRACE attribute of this session.
|
static void |
setExitCode(long value)
Set the value of SESSION:EXIT-CODE attribute.
|
static void |
setIpCaptureTime(long ipCaptureTimestamp)
Setter for the datetime of the capture time for BROWSER-EXTERNAL-IP.
|
static void |
setLoginParams(java.util.Map<java.lang.String,java.lang.String[]> loginParams)
Sets the params sent by the login request.
|
static void |
setMultitaskingInterval(NumberType interval)
Set the value of SESSION:MULTITASKING-INTERVAL attribute.
|
static void |
setPrinterControlHandle(integer value)
Set the state of SESSION:PRINTER-CONTROL-HANDLE attribute.
|
static void |
setPrinterName(character value)
Set the state of SESSION:PRINTER-NAME attribute.
|
static void |
setPrinterPort(character value)
Set the state of SESSION:PRINTER-PORT attribute.
|
static void |
setRelatedSessionId(java.lang.String relatedSessionId)
Sets the RELATED-SESSION-ID attribute.
|
static void |
setScreenColorDepth(int screenColorDepth)
Setter for the client screen color depth.
|
static void |
setScreenHeight(int screenHeight)
Setter for the client screen height.
|
static void |
setScreenScalingFactor(float screenScalingFactor)
Setter for the client screen scaling factor.
|
static void |
setScreenWidth(int screenWidth)
Setter for the client screen width.
|
static void |
setServerConnectionBoundRequest(boolean state)
Set the SERVER-CONNECTION-BOUND-REQUEST attribute of this session.
|
static void |
setServerConnectionBoundRequest(logical state)
Set the SERVER-CONNECTION-BOUND-REQUEST attribute of this session.
|
static void |
setServerConnectionContext(character val)
Set the SERVER-CONNECTION-CONTEXT attribute of this session.
|
static void |
setServerConnectionContext(java.lang.String val)
Set the SERVER-CONNECTION-CONTEXT attribute of this session.
|
static void |
setSessionDisplayTimeZone(NumberType displayTimezone)
Sets the
DISPLAY-TIMEZONE attribute for the user's context. |
static void |
setSessionId(character sessionId)
Set the SESSION-ID Attribute.
|
static void |
setSessionId(java.lang.String sessionId)
Set the SESSION-ID Attribute.
|
static void |
setSessionTimeSource(character timeSource)
Sets the
TIME-SOURCE attribute for the user's context. |
static void |
setSessionTimeZone(NumberType offset)
Sets the SESSION:TIMEZONE used as the default offset in minutes from
UTC for this user's context.
|
static void |
setSessionTooltips(logical tooltips)
Sets the SESSION:TOOLTIPS attribute for this session.
|
static void |
setStartupParameters(StartupParameters startupParameters)
Sets the startup parameters.
|
static void |
setStorageId(java.lang.String storageId)
Setter for the storage ID of the end-user (available with SSO).
|
static void |
setSuppressWarnings(boolean value)
Set the state of SESSION:SUPPRESS-WARNINGS attribute.
|
static void |
setSuppressWarnings(logical value)
Set the state of SESSION:SUPPRESS-WARNINGS attribute.
|
static void |
setSuppressWarningsList(java.lang.String list)
Set the SUPPRESS-WARNINGS-LIST attribute of this session.
|
static void |
setSuppressWarningsList(Text list)
Set the SUPPRESS-WARNINGS-LIST attribute of this session.
|
static void |
setSystemAlertBoxes(boolean on)
Set the state of SESSION:SYSTEM-ALERT-BOXES attribute.
|
static void |
setSystemAlertBoxes(logical on)
Set the state of SESSION:SYSTEM-ALERT-BOXES attribute.
|
static void |
setTerminationHook(character hook)
Set the TERMINATION-HOOK attribute of this session.
|
static void |
setTerminationHook(java.lang.String hook)
Set the TERMINATION-HOOK attribute of this session.
|
static void |
setUserAgent(java.lang.String userAgent)
Setter for the user agent info of the browser where the js client runs.
|
static void |
setWebUploadInfo(java.lang.String[] uploadFiles,
boolean error)
Assigns the upload information related to the current direct upload.
|
static void |
setYearOffset(NumberType year)
Implementation of SESSION:YEAR-OFFSET attribute setter.
|
static boolean |
unknown()
Implementation for the
WrappedResource.unknown() API. |
static boolean |
valid()
Implementation for the
WrappedResource.valid() API. |
private static final CentralLogger LOG
private static final ContextLocal<SessionUtils.WorkArea> work
private static final java.lang.Object DEVICE_ID_LOCK
private static final ContextLocal<StartupParameters> startupParameters
public static handle asHandle()
StaticProxy.obtain(Class, Class[]), using the
CommonSession interface and its methods implemented by these
classes: SessionUtils, EnvironmentOps, date,
LogicalTerminal, ProcedureManager.public static character getSessionId()
public static void setSessionId(character sessionId)
sessionId - The value of the SESSION-ID attribute.public static void setSessionId(java.lang.String sessionId)
sessionId - The value of the SESSION-ID attribute.public static character getAuthBlob()
public static character getDeviceId()
public static void setAuthBlob(java.lang.String authBlob)
authBlob - The authentication blob content.public static void setDeviceId(java.lang.String deviceId)
deviceId - The device ID.public static character getRelatedSessionId()
SESSION:RELATED-SESSION-ID system handle attribute.public static void setRelatedSessionId(java.lang.String relatedSessionId)
relatedSessionId - The unique ID of the original session that was forked.public static void forkNewSession(character cfgOverrides, character authBlob)
SESSION:NEW-SESSION(character, character)
system handle method.cfgOverrides - New session startup parameters.authBlob - The value to be assigned to SESSION:AUTH-BLOB in the new session.public static void forkNewSession(java.lang.String cfgOverrides,
character authBlob)
SESSION:NEW-SESSION(String, character)
system handle method.cfgOverrides - New session startup parameters.authBlob - The value to be assigned to SESSION:AUTH-BLOB in the new session.public static void forkNewSession(character cfgOverrides, java.lang.String authBlob)
SESSION:NEW-SESSION(character, String)
system handle method.cfgOverrides - New session startup parameters.authBlob - The value to be assigned to SESSION:AUTH-BLOB in the new session.public static void forkNewSession(java.lang.String cfgOverrides,
java.lang.String authBlob)
SESSION:NEW-SESSION(String, String)
system handle method.cfgOverrides - New session startup parameters.authBlob - The value to be assigned to SESSION:AUTH-BLOB in the new session.public static java.lang.Long id()
public static void id(long id)
This is a no-op for system handles.
id - The resource's ID.public static character resourceType()
public static boolean valid()
WrappedResource.valid() API.public static boolean unknown()
WrappedResource.unknown() API.public static void readOnlyError(java.lang.String attribute)
attribute - The attribute's name.handle.readOnlyError(handle, String)public static void readOnlyError(java.lang.String attribute,
java.lang.Object expr)
**Unable to assign UNKNOWN value to attribute <attribute> on <widget id>.attribute - The read-only attribute.expr - The value which is attempted to be assigned to the read-only attribute.public static logical isRemote()
true if the session is for the context of an appserver.public static boolean _isRemote()
true if the session is for the context of an appserver.public static logical isClientDisconnected()
true if the FWD client has disconnected (due to an abend, socket close, etc).public static character getTerminationHook()
public static void setTerminationHook(character hook)
This attribute is valid only for non-remote sessions - for a remote session, a message will be logged.
hook - The hook, a character expression with an external program name or a static method reference
following the com.goldencode.Foo:someStaticMethod syntax.public static void setTerminationHook(java.lang.String hook)
hook - The hook, a character expression with an external program name or a static method reference
following the com.goldencode.Foo:someStaticMethod syntax.public static character getServerOperatingMode()
Possible values:
public static logical export(java.lang.String procList)
procList - The list of procedure and name-patterns separated by comma.true if the method succeeded.public static logical export(character procList)
procList - The list of procedure and name-patterns separated by comma.true if the method succeeded.public static character getParameter()
-param command line option specified for the current session.
The following is the precedence order (highest to lowest) for obtaining the value of this parameter:
SESSION:PARAMETER value for this context.public static handle firstBuffer()
public static handle firstChild()
public static handle lastChild()
public static handle firstQuery()
TODO: this should call a worker method from the persist package.
public static handle firstServer()
public static handle firstServerSocket()
public static handle firstSocket()
public static handle lastServer()
public static handle lastServerSocket()
public static handle lastSocket()
public static handle getFirstDataSet()
DataSet object created in the current session.
The list of Datasets is reversed (it is a stack instead of a queue).
SESSION:FIRST-DATASET, as described above.public static handle getFirstDataSource()
DataSource object created in the current session.
The list of DataSources is reversed (it is a stack instead of a queue).
SESSION:FIRST-DATA-SOURCE, as described above.public static void setDateFormat(java.lang.String dateFormat)
The order of the 3 date sub-components as a 3 character string using "M", "D" and "Y" once each. The order from index 0 to index 2 represents the left to right ordering of the components. So the leftmost date component will be defined by the character at index position 0.
The value set is specific to the current user's context.
dateFormat - Defines the order of date components for conversion to/from strings.public static void setDateFormat(character dateFormat)
The order of the 3 date sub-components as a 3 character string using "M", "D" and "Y" once each. The order from index 0 to index 2 represents the left to right ordering of the components. So the leftmost date component will be defined by the character at index position 0.
The value set is specific to the current user's context.
dateFormat - Defines the order of date components for conversion to/from strings.public static character getDateFormat()
The order of the 3 date sub-components is a 3 character string using "M", "D" and "Y" once each. The order from index 0 to index 2 represents the left to right ordering of the components. So the leftmost date component will be defined by the character at index position 0.
The value accessed is specific to the current user's context.
public static logical isDebugAlert()
public static void setDebugAlert(logical on)
on - The new state for SESSION:DEBUG-ALERT attribute.public static void setDebugAlert(boolean on)
on - The new state for SESSION:DEBUG-ALERT attribute.public static logical isDataEntryReturn()
public static void setDataEntryReturn(logical on)
on - The new state for SESSION:DATA-ENTRY-RETURN attribute.public static void setDataEntryReturn(boolean on)
on - The new state for SESSION:DATA-ENTRY-RETURN attribute.public static logical loadIcon(java.lang.String iconName)
iconName - The file name of the icon to be loadedtrue if successfulpublic static logical loadIcon(character iconName)
iconName - The file name of the icon to be loadedtrue if successfulpublic static void setSessionTimeZone(NumberType offset)
offset - The new timezone offset which must be between -840 and 840
inclusive. The value may also be unknown which
is the equivalent of resetting this attribute to the default.public static integer getSessionTimeZone()
unknown will be returned.public static character getSessionTimeSource()
The default value is "local" which in Progress means that the client machine is the source (this is the same as the empty string ""). It is common to use a database name in the 4GL, which makes the application use the database server as the time source.
public static void setSessionTimeSource(character timeSource)
TIME-SOURCE attribute for the user's context.
This attribute is can be read and written but it is not honored for
date/time processing in P2J. The intention of the attribute is to define
the system from which time values will be obtained. In P2J, time values
are always obtained from the application server.timeSource - The new value to set. If null, then the empty
string will be used, which in the 4GL has the same affect as
"local".public static integer getSessionDisplayTimeZone()
public static void setSessionDisplayTimeZone(NumberType displayTimezone)
DISPLAY-TIMEZONE attribute for the user's context.
This attribute is used for displaying DATETIME-TZ values that do not have
the timezone specified in the display format.displayTimezone - The new value to set.public static integer getYearOffset()
date.getWindowingYear()).public static void setYearOffset(NumberType year)
date.getWindowingYear()).year - The new start year for the two-digit windowing range.public static integer getPixelsPerRow()
public static integer getPixelsPerColumn()
public static void setSessionTooltips(logical tooltips)
tooltips - The new value for session related TOOLTIPS attribute.public static logical getSessionTooltips()
true if tooltips are available for this session
false otherwise.public static logical is3D()
public static void set3D(logical value)
value - The value to set.public static character getPrinterName()
public static void setPrinterName(character value)
value - The new state for SESSION:PRINTER-NAME attribute.public static character getPrinterPort()
public static void setPrinterPort(character value)
value - The new state for SESSION:PRINTER-PORT attribute.public static integer getPrinterControlHandle()
public static void setPrinterControlHandle(integer value)
value - The new state for SESSION:PRINTER-CONTROL-HANDLE attribute.public static integer getPrinterHDC()
public static character getPrinters()
public static logical isSuppressWarnings()
public static void setSuppressWarnings(logical value)
value - The new state for SESSION:SUPPRESS-WARNINGS attribute.public static void setSuppressWarnings(boolean value)
value - The new state for SESSION:SUPPRESS-WARNINGS attribute.public static character getStartupParameters()
public static StartupParameters _startupParameters()
public static void setStartupParameters(StartupParameters startupParameters)
public static void setSystemAlertBoxes(boolean on)
on - The new state for SESSION:SYSTEM-ALERT-BOXES attribute.public static void setSystemAlertBoxes(logical on)
on - The new state for SESSION:SYSTEM-ALERT-BOXES attribute.public static logical isSystemAlertBoxes()
public static void setMultitaskingInterval(NumberType interval)
interval - The new value of SESSION:MULTITASKING-INTERVAL attribute.public static integer getMultitaskingInterval()
public static void setExitCode(long value)
value - The new value of SESSION:EXIT-CODE attribute.public static long getExitCode()
public static logical isServerConnectionBound()
public static character getServerConnectionContext()
public static void setServerConnectionContext(java.lang.String val)
val - The attribute's value.public static void setServerConnectionContext(character val)
val - The attribute's value.public static character getServerConnectionId()
public static object<?> firstObject()
public static object<?> lastObject()
public static object<? extends OeversionInfo> localVersionInfo()
public static void setClientTypes(ClientType... clientTypes)
clientTypes - The client types for the session.public static ClientType[] getClientTypes()
public static character getClientType()
public static object<? extends OerequestInfo> currentRequestInfo()
public static object<? extends OerequestInfo> currentResponseInfo()
public static character getICFParameter()
public static character getContextHelpFile()
public static void setContextHelpFile(java.lang.String file)
file - The file name.public static void setContextHelpFile(character file)
file - The file name.public static logical getServerConnectionBoundRequest()
public static void setServerConnectionBoundRequest(boolean state)
state - The bound state.public static void setServerConnectionBoundRequest(logical state)
state - The bound state.public static void setErrorStackTrace(logical state)
state - The attribute's state.public static void setErrorStackTrace(boolean state)
state - The attribute's state.public static logical isErrorStackTrace()
static void clientDisconnected()
public static character getSuppressWarningsList()
public static void setSuppressWarningsList(java.lang.String list)
list - The warning code list.public static void setSuppressWarningsList(Text list)
list - The warning code list.public static character getBrowserExternalIp()
public static void setBrowserExternalIp(java.lang.String browserExternalIp)
browserExternalIp - The external IP of the end-user machinepublic static integer getBrowserPort()
public static void setBrowserPort(int browserPort)
browserPort - The TCP port of the end-user machine, on which the WebSocket runs in the browserpublic static integer getBrowserTimezone()
public static void setBrowserTimezone(int browserTimezone)
browserTimezone - The offset in minutes from UTC for the browser timezonepublic static datetime getIpCaptureTime()
public static void setIpCaptureTime(long ipCaptureTimestamp)
ipCaptureTimestamp - The UTC timestamp of the capture time for BROWSER-EXTERNAL-IPpublic static character getClientExternalIp()
public static void setClientExternalIp(java.lang.String clientExternalIp)
clientExternalIp - The external IP of the client machinepublic static integer getClientPort()
public static void setClientPort(int clientPort)
clientPort - The TCP port of the client machine.public static integer getClientTimezone()
public static void setClientTimezone(int clientTimezone)
clientTimezone - The offset in minutes from UTC for the client machine timezonepublic static datetime getClientIpCaptureTime()
public static void setClientIpCaptureTime(long ipCaptureTimestamp)
ipCaptureTimestamp - The UTC timestamp of the capture time for CLIENT-EXTERNAL-IPpublic static integer getScreenColorDepth()
public static void setScreenColorDepth(int screenColorDepth)
screenColorDepth - The client screen color depthpublic static integer getScreenHeight()
public static void setScreenHeight(int screenHeight)
screenHeight - The client screen heightpublic static decimal getScreenScalingFactor()
public static void setScreenScalingFactor(float screenScalingFactor)
screenScalingFactor - The client screen scaling factorpublic static integer getScreenWidth()
public static void setScreenWidth(int screenWidth)
screenWidth - The client screen widthpublic static character getUserAgent()
public static void setUserAgent(java.lang.String userAgent)
userAgent - The user agentpublic static void setStorageId(java.lang.String storageId)
storageId - The storage IDpublic static java.lang.String getStorageId()
public static character getLoginParam(character paramName)
paramName - The name of the login parameter.public static character getLoginParam(java.lang.String paramName)
paramName - The name of the login parameter.public static character getLoginParam(character paramName, integer oeIndex)
paramName - The name of the login parameter.oeIndex - The index of the value of the login parameter. 1-based as in Progress.public static character getLoginParam(character paramName, int oeIndex)
paramName - The name of the login parameter.oeIndex - The index of the value of the login parameter. 1-based as in Progress.public static character getLoginParam(java.lang.String paramName, integer oeIndex)
paramName - The name of the login parameter.oeIndex - The index of the value of the login parameter. 1-based as in Progress.public static character getLoginParam(java.lang.String paramName, int oeIndex)
paramName - The name of the login parameter.oeIndex - The index of the value of the login parameter. 1-based as in Progress.public static void setLoginParams(java.util.Map<java.lang.String,java.lang.String[]> loginParams)
loginParams - The map of name : values for the params sent by the login request.public static java.util.Map<java.lang.String,java.lang.String[]> getLoginParams()
public static character getWebUploadFiles()
public static logical getWebUploadError()
false otherwise.public static void setWebUploadInfo(java.lang.String[] uploadFiles,
boolean error)
uploadFiles - Comma delimited string of local file system paths of
the files uploaded during direct upload or a comma delimited string
of file names chosen during direct file upload.error - {code true} when the current direct upload operation ended with
an error, false otherwise.