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() |
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) |
void |
logError(String message) |
void |
logError(String message,
Throwable ex) |
void |
logInfo(String message) |
void |
logWarning(String message) |
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()
@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
void logInfo(String message)
logInfo
in interface BaseContext
void logWarning(String message)
logWarning
in interface BaseContext
void logError(String message)
logError
in interface BaseContext
void logError(String message, Throwable ex)
logError
in interface BaseContext
Copyright © 2015 e-Spirit AG. All Rights Reserved. Build 5.1.408