public interface ScriptContext extends BaseContext
Common properties
:isWebClient (java.lang.Boolean) - since 4.2.404 - indicates whether this script context is executed in webclient or not.
(Note: This property has been deprecated with 5.0.12, use#isEnv(Env.WEBEDIT)
instead)
BaseContext.Env
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
Return the
Connection for the script context |
String[] |
getProperties()
Returns an array of property names existing in this context.
|
Object |
getProperty(String name)
Returns the property specified by the given name or
null if no
property exists with the given name |
void |
logDebug(String message)
Log a message with DEBUG level
|
void |
logError(String message)
Log a message with ERROR level
|
void |
logError(String message,
Throwable ex)
Log a message with ERROR level and the
error that caused it. |
void |
logInfo(String message)
Log a message with INFO level
|
void |
logWarning(String message)
Log a message with WARNING level
|
void |
removeProperty(String name)
Removes the property with the given name.
|
void |
setProperty(String name,
Object value)
Creates a property entry for the given value identified by the given name.
|
is
requestSpecialist, requireSpecialist
Connection getConnection()
Connection
for the script contextConnection
for the script context@Nullable Object getProperty(String name)
null
if no
property exists with the given namenull
void setProperty(String name, Object value)
getProperty(String)
during the lifetime
of this context.name
- the name of the propertyvalue
- the value of the propertygetProperty(String)
void removeProperty(String name)
name
- the of the property to be removedString[] getProperties()
void logDebug(String message)
logDebug
in interface BaseContext
message
- The message that is to be loggedvoid logInfo(String message)
logInfo
in interface BaseContext
message
- The message that is to be loggedvoid logWarning(String message)
logWarning
in interface BaseContext
message
- The message that is to be loggedvoid logError(String message)
logError
in interface BaseContext
message
- The message that is to be loggedCopyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210