Skip to main content

Exec

Functionalities to aid code execution. It performs the execution of other scripts, it also supports the execution of scripts in other programming languages. Executes the indicated script, returning its output. Main functions:

// Run another App script in `server/core/`
const outputOutput = _exec.core("other-script");

// Run another App script in `server/services/`
const outputService = _exec.service("other-service");

// Pause for 2 seconds:`
_exec.sleep(2000);

// Execution stop:`
_exec.stop();


add


_exec.add(index: int, element: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
indexint
elementjava.lang.Object
Return

( Values )


_exec.add(o: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( Values )


addAll


_exec.addAll(index: int, c: java.util.Collection) : boolean

Attributes
NAMETYPEDESCRIPTION
indexint
cjava.util.Collection
Return

( boolean )


_exec.addAll(c: java.util.Collection) : boolean

Attributes
NAMETYPEDESCRIPTION
cjava.util.Collection
Return

( boolean )


afterClose


_exec.afterClose(function: java.util.function.Function) : void

Attributes
NAMETYPEDESCRIPTION
functionjava.util.function.Function
Return

( void )


as


_exec.as(o: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( Values )


_exec.as(o: java.lang.Object, oDefault: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
oDefaultjava.lang.Object
Return

( Values )


asBoolean


_exec.asBoolean(index: int) : boolean

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( boolean )


_exec.asBoolean(index: int, defaultValue: boolean) : boolean

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValueboolean
Return

( boolean )


_exec.asBoolean(key: string) : boolean

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( boolean )


_exec.asBoolean(key: string, defaultValue: boolean) : boolean

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValueboolean
Return

( boolean )


asByte


_exec.asByte(index: int) : byte

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( byte )


_exec.asByte(index: int, defaultValue: byte) : byte

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuebyte
Return

( byte )


_exec.asByte(key: string, defaultValue: byte) : byte

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuebyte
Return

( byte )


asCalendar


_exec.asCalendar(key: string) : java.util.Calendar

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.util.Calendar )


_exec.asCalendar(key: string, defaultValue: java.util.Calendar) : java.util.Calendar

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.util.Calendar
Return

( java.util.Calendar )


asDate


_exec.asDate(key: string) : java.util.Date

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.util.Date )


_exec.asDate(key: string, defaultValue: java.util.Date) : java.util.Date

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.util.Date
Return

( java.util.Date )


asDouble


_exec.asDouble(index: int) : double

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( double )


_exec.asDouble(index: int, defaultValue: double) : double

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuedouble
Return

( double )


_exec.asDouble(key: string) : double

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( double )


_exec.asDouble(key: string, defaultValue: double) : double

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuedouble
Return

( double )


asFile


_exec.asFile(key: string) : File

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( File )


asFloat


_exec.asFloat(index: int) : float

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( float )


_exec.asFloat(index: int, defaultValue: float) : float

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuefloat
Return

( float )


_exec.asFloat(key: string) : float

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( float )


_exec.asFloat(key: string, defaultValue: float) : float

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuefloat
Return

( float )


asHTMLDecode


_exec.asHTMLDecode(key: string) : string

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( string )


asHTMLEncode


_exec.asHTMLEncode(key: string) : string

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( string )


asInstant


_exec.asInstant(key: string) : java.time.Instant

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.time.Instant )


_exec.asInstant(key: string, defaultValue: java.time.Instant) : java.time.Instant

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.time.Instant
Return

( java.time.Instant )


asInt


_exec.asInt(index: int) : int

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( int )


_exec.asInt(index: int, defaultValue: int) : int

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValueint
Return

( int )


_exec.asInt(key: string, defaultValue: short) : int

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValueshort
Return

( int )


asList


_exec.asList(index: int) : java.util.List

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( java.util.List )


_exec.asList(index: int, claz: java.lang.Class) : java.util.List

Attributes
NAMETYPEDESCRIPTION
indexint
clazjava.lang.Class
Return

( java.util.List )


_exec.asList(index: int, defaultValue: java.lang.Object) : java.util.List

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuejava.lang.Object
Return

( java.util.List )


_exec.asList(index: int, defaultValue: java.lang.Object, claz: java.lang.Class) : java.util.List

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuejava.lang.Object
clazjava.lang.Class
Return

( java.util.List )


_exec.asList(key: string) : java.util.List

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.util.List )


_exec.asList(key: string, claz: java.lang.Class) : java.util.List

Attributes
NAMETYPEDESCRIPTION
keystring
clazjava.lang.Class
Return

( java.util.List )


_exec.asList(key: string, defaultValue: java.lang.Object) : java.util.List

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.lang.Object
Return

( java.util.List )


_exec.asList(key: string, defaultValue: java.lang.Object, claz: java.lang.Class) : java.util.List

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.lang.Object
clazjava.lang.Class
Return

( java.util.List )


asLocalDate


_exec.asLocalDate(key: string) : java.time.LocalDate

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.time.LocalDate )


_exec.asLocalDate(key: string, defaultValue: java.time.LocalDate) : java.time.LocalDate

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.time.LocalDate
Return

( java.time.LocalDate )


asLocalDateTime


_exec.asLocalDateTime(key: string) : java.time.LocalDateTime

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.time.LocalDateTime )


_exec.asLocalDateTime(key: string, defaultValue: java.time.LocalDateTime) : java.time.LocalDateTime

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.time.LocalDateTime
Return

( java.time.LocalDateTime )


asLocalTime


_exec.asLocalTime(key: string) : java.time.LocalTime

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.time.LocalTime )


_exec.asLocalTime(key: string, defaultValue: java.time.LocalTime) : java.time.LocalTime

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.time.LocalTime
Return

( java.time.LocalTime )


asLong


_exec.asLong(index: int) : long

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( long )


_exec.asLong(index: int, defaultValue: long) : long

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuelong
Return

( long )


_exec.asLong(key: string) : long

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( long )


_exec.asLong(key: string, defaultValue: long) : long

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuelong
Return

( long )


asMap


_exec.asMap(index: int) : Config | Exec | Header | Req | Res | Values | DataSchema

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( Config | Exec | Header | Req | Res | Values | DataSchema )


_exec.asMap(index: int, defaultValue: java.lang.Object) : Config | Exec | Header | Req | Res | Values | DataSchema

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuejava.lang.Object
Return

( Config | Exec | Header | Req | Res | Values | DataSchema )


_exec.asMap(key: string) : Config | Exec | Header | Req | Res | Values | DataSchema

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( Config | Exec | Header | Req | Res | Values | DataSchema )


_exec.asMap(key: string, defaultValue: java.lang.Object) : Config | Exec | Header | Req | Res | Values | DataSchema

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.lang.Object
Return

( Config | Exec | Header | Req | Res | Values | DataSchema )


asSQLDate


_exec.asSQLDate(key: string) : java.sql.Date

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.sql.Date )


_exec.asSQLDate(key: string, defaultValue: java.sql.Date) : java.sql.Date

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.sql.Date
Return

( java.sql.Date )


asSQLTime


_exec.asSQLTime(key: string) : java.sql.Time

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.sql.Time )


_exec.asSQLTime(key: string, defaultValue: java.sql.Time) : java.sql.Time

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.sql.Time
Return

( java.sql.Time )


asSQLTimestamp


_exec.asSQLTimestamp(key: string) : java.sql.Timestamp

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.sql.Timestamp )


_exec.asSQLTimestamp(key: string, defaultValue: java.sql.Timestamp) : java.sql.Timestamp

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.sql.Timestamp
Return

( java.sql.Timestamp )


asShort


_exec.asShort(index: int) : short

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( short )


_exec.asShort(index: int, defaultValue: short) : short

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValueshort
Return

( short )


_exec.asShort(key: string) : short

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( short )


_exec.asShort(key: string, defaultValue: short) : short

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValueshort
Return

( short )


asString


_exec.asString(index: int) : string

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( string )


_exec.asString(index: int, defaultValue: string) : string

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuestring
Return

( string )


_exec.asString(key: string) : string

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( string )


_exec.asString(key: string, defaultValue: string) : string

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuestring
Return

( string )


_exec.asString(key: string, defaultValue: string, charsetName: string) : string

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuestring
charsetNamestring
Return

( string )


asUID


_exec.asUID(key: string) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.util.UUID )


_exec.asUID(key: string, defaultValue: string) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuestring
Return

( java.util.UUID )


_exec.asUID(key: string, defaultValue: java.util.UUID) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.util.UUID
Return

( java.util.UUID )


asUUID


_exec.asUUID(key: string) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.util.UUID )


_exec.asUUID(key: string, defaultValue: string) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuestring
Return

( java.util.UUID )


_exec.asUUID(key: string, defaultValue: java.util.UUID) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.util.UUID
Return

( java.util.UUID )


asValues


_exec.asValues(index: int) : Values

Description

Gets the object associated with the index and then casts to Values (Dictionary or List).

Attributes
NAMETYPEDESCRIPTION
indexintThe index to get the associated object.
Return

( Values )

Object converted to Values.


_exec.asValues(index: int, defaultValue: java.lang.Object) : Values

Description

Gets the object associated with the index and then casts to Values (Dictionary or List).

Attributes
NAMETYPEDESCRIPTION
indexintThe index to get the associated object.
defaultValuejava.lang.ObjectIf it fails to get the value as an object in Values then it returns this default value instead.
Return

( Values )

Object converted to Values.


_exec.asValues(key: string) : Values

Description

Gets the object associated with the key and then casts to Values (Dictionary or List).

Attributes
NAMETYPEDESCRIPTION
keystringThe key to get the associated object.
Return

( Values )

Object converted to Values.


_exec.asValues(key: string, defaultValue: java.lang.Object) : Values

Description

Gets the object associated with the key and then casts to Values (Dictionary or List).

Attributes
NAMETYPEDESCRIPTION
keystringThe key to get the associated object.
defaultValuejava.lang.ObjectIf it fails to get the value as an object in Values then it returns this default value instead.
Return

( Values )

Object converted to Values.


beforeClose


_exec.beforeClose(function: java.util.function.Function) : void

Attributes
NAMETYPEDESCRIPTION
functionjava.util.function.Function
Return

( void )


bind


_exec.bind(key: string, value: java.lang.Object) : Exec

Description

Transitions variables between scripts, including between different programming languages.

How To Use
const originalVar = "test";
_exec .bind("transitVar", originalVar) .core("another-script-maybe-in-another-language");
Attributes
NAMETYPEDESCRIPTION
keystringVariable name that will be available in the other script that will be executed.
valuejava.lang.ObjectObject to be passed to the other script that will be executed.
Return

( Exec )


clear


_exec.clear() : void

Return

( void )


cloneJSON


_exec.cloneJSON() : Values

Return

( Values )


compute


_exec.compute(arg0: java.lang.Object, arg1: java.util.function.BiFunction) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
arg0java.lang.Object
arg1java.util.function.BiFunction
Return

( java.lang.Object )


computeIfAbsent


_exec.computeIfAbsent(arg0: java.lang.Object, arg1: java.util.function.Function) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
arg0java.lang.Object
arg1java.util.function.Function
Return

( java.lang.Object )


computeIfPresent


_exec.computeIfPresent(arg0: java.lang.Object, arg1: java.util.function.BiFunction) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
arg0java.lang.Object
arg1java.util.function.BiFunction
Return

( java.lang.Object )


contains


_exec.contains(o: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( boolean )


_exec.contains(key: string, value: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
keystring
valuejava.lang.Object
Return

( boolean )


containsAll


_exec.containsAll(c: java.util.Collection) : boolean

Attributes
NAMETYPEDESCRIPTION
cjava.util.Collection
Return

( boolean )


containsKey


_exec.containsKey(key: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
keyjava.lang.Object
Return

( boolean )


containsValue


_exec.containsValue(value: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
valuejava.lang.Object
Return

( boolean )


core


_exec.core(path: string) : ScriptResult

Description

Execution of scripts that are in the server/core/ folder.

How To Use
_exec.core("another-script-maybe-in-another-language");
Attributes
NAMETYPEDESCRIPTION
pathstringScript path with source in core/ to execute.
Return

( ScriptResult )


_exec.core(path: string, path: boolean) : ScriptResult

Description

Execution of scripts that are in the server/core/ folder.

How To Use
_exec.core("another-script-maybe-in-another-language");
Attributes
NAMETYPEDESCRIPTION
pathstringScript path with source in core/ to execute.
pathbooleanScript path with source in core/ to execute.
Return

( ScriptResult )


ensureJail


_exec.ensureJail(jailPath: string) : void

Description

Set the security restriction on a specific directory for processed objects of the file type, it can only be set once.

Attributes
NAMETYPEDESCRIPTION
jailPathstringPath where files will be restricted.
Return

( void )


entrySet


_exec.entrySet() : java.util.Set

Return

( java.util.Set )


filter


_exec.filter(p: java.util.function.Predicate) : Values

Attributes
NAMETYPEDESCRIPTION
pjava.util.function.Predicate
Return

( Values )


_exec.filter(function: org.graalvm.polyglot.Value) : Values

Attributes
NAMETYPEDESCRIPTION
functionorg.graalvm.polyglot.Value
Return

( Values )


find


_exec.find(key: string, value: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuejava.lang.Object
Return

( Values )


_exec.find(p: java.util.function.Predicate) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
pjava.util.function.Predicate
Return

( java.lang.Object )


_exec.find(function: org.graalvm.polyglot.Value) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
functionorg.graalvm.polyglot.Value
Return

( java.lang.Object )


_exec.find(filter: Values) : Values

Attributes
NAMETYPEDESCRIPTION
filterValues
Return

( Values )


forEach


_exec.forEach(action: java.util.function.BiConsumer) : void

Attributes
NAMETYPEDESCRIPTION
actionjava.util.function.BiConsumer
Return

( void )


_exec.forEach(action: java.util.function.Consumer) : void

Attributes
NAMETYPEDESCRIPTION
actionjava.util.function.Consumer
Return

( void )


_exec.forEach(function: org.graalvm.polyglot.Value) : void

Attributes
NAMETYPEDESCRIPTION
functionorg.graalvm.polyglot.Value
Return

( void )


forceList


_exec.forceList() : Values

Return

( Values )


forceMap


_exec.forceMap() : Values

Return

( Values )


fromJSON


_exec.fromJSON(content: string) : Values

Attributes
NAMETYPEDESCRIPTION
contentstring
Return

( Values )


_exec.fromJSON(content: org.netuno.psamata.net.Remote$Response) : Values

Attributes
NAMETYPEDESCRIPTION
contentorg.netuno.psamata.net.Remote$Response
Return

( Values )


functions


_exec.functions() : Functions

Description

Manages the execution of functions.

Return

( Functions )


_exec.functions(functions: [Ljava.util.function.Function;[]) : Functions

Attributes
NAMETYPEDESCRIPTION
functions[Ljava.util.function.Function;[]
Return

( Functions )


_exec.functions(data: java.lang.Object) : Functions

Attributes
NAMETYPEDESCRIPTION
datajava.lang.Object
Return

( Functions )


_exec.functions(data: java.lang.Object, functions: [Ljava.util.function.Function;[]) : Functions

Attributes
NAMETYPEDESCRIPTION
datajava.lang.Object
functions[Ljava.util.function.Function;[]
Return

( Functions )


gc


_exec.gc() : void

Description

Performs memory cleanup by running the garbage collector (JVM garbage collector).

How To Use
// Free up memory by running Garbage Collector:
_exec.gc();
Return

( void )


get


_exec.get(key: int) : java.lang.Object

Description

Gets the original object associated with the key.

Attributes
NAMETYPEDESCRIPTION
keyintKey to get the object to associate.
Return

( java.lang.Object )

Original object without conversions.


_exec.get(key: java.lang.Object) : java.lang.Object

Description

Gets the original object associated with the key.

Attributes
NAMETYPEDESCRIPTION
keyjava.lang.ObjectKey to get the object to associate.
Return

( java.lang.Object )

Original object without conversions.


_exec.get(key: string) : java.lang.Object

Description

Gets the original object associated with the key.

Attributes
NAMETYPEDESCRIPTION
keystringKey to get the object to associate.
Return

( java.lang.Object )

Original object without conversions.


_exec.get(key: string, type: java.lang.Class) : java.lang.Object

Description

Gets the original object associated with the key, but cast for the specified class type.

Attributes
NAMETYPEDESCRIPTION
keystringKey to get the associated object.
typejava.lang.ClassClass representing the type of object that should be cast.
Return

( java.lang.Object )

Original object converted to the type of the defined class.


getBoolean


_exec.getBoolean(index: int) : boolean

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( boolean )


_exec.getBoolean(index: int, defaultValue: boolean) : boolean

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValueboolean
Return

( boolean )


_exec.getBoolean(key: string) : boolean

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( boolean )


_exec.getBoolean(key: string, defaultValue: boolean) : boolean

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValueboolean
Return

( boolean )


getByte


_exec.getByte(index: int) : byte

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( byte )


_exec.getByte(index: int, defaultValue: byte) : byte

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuebyte
Return

( byte )


_exec.getByte(key: string) : byte

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( byte )


_exec.getByte(key: string, defaultValue: byte) : byte

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuebyte
Return

( byte )


getCalendar


_exec.getCalendar(key: string) : java.util.Calendar

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.util.Calendar )


_exec.getCalendar(key: string, defaultValue: java.util.Calendar) : java.util.Calendar

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.util.Calendar
Return

( java.util.Calendar )


getDate


_exec.getDate(key: string) : java.util.Date

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.util.Date )


_exec.getDate(key: string, defaultValue: java.util.Date) : java.util.Date

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.util.Date
Return

( java.util.Date )


getDouble


_exec.getDouble(index: int) : double

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( double )


_exec.getDouble(index: int, defaultValue: double) : double

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuedouble
Return

( double )


_exec.getDouble(key: string) : double

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( double )


_exec.getDouble(key: string, defaultValue: double) : double

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuedouble
Return

( double )


getFile


_exec.getFile(key: string) : File

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( File )


getFloat


_exec.getFloat(index: int) : float

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( float )


_exec.getFloat(index: int, defaultValue: float) : float

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuefloat
Return

( float )


_exec.getFloat(key: string) : float

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( float )


_exec.getFloat(key: string, defaultValue: float) : float

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuefloat
Return

( float )


getForceList


_exec.getForceList() : boolean

Return

( boolean )


getForceMap


_exec.getForceMap() : boolean

Return

( boolean )


getHTMLDecode


_exec.getHTMLDecode(key: string) : string

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( string )


getHTMLEncode


_exec.getHTMLEncode(key: string) : string

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( string )


getInstant


_exec.getInstant(key: string) : java.time.Instant

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.time.Instant )


_exec.getInstant(key: string, defaultValue: java.time.Instant) : java.time.Instant

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.time.Instant
Return

( java.time.Instant )


getInt


_exec.getInt(index: int) : int

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( int )


_exec.getInt(index: int, defaultValue: int) : int

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValueint
Return

( int )


_exec.getInt(key: string) : int

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( int )


_exec.getInt(key: string, defaultValue: int) : int

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValueint
Return

( int )


getKeys


_exec.getKeys() : java.util.Set

Return

( java.util.Set )


getList


_exec.getList(index: int) : java.util.List

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( java.util.List )


_exec.getList(index: int, claz: java.lang.Class) : java.util.List

Attributes
NAMETYPEDESCRIPTION
indexint
clazjava.lang.Class
Return

( java.util.List )


_exec.getList(index: int, defaultValue: java.lang.Object) : java.util.List

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuejava.lang.Object
Return

( java.util.List )


_exec.getList(index: int, defaultValue: java.lang.Object, claz: java.lang.Class) : java.util.List

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuejava.lang.Object
clazjava.lang.Class
Return

( java.util.List )


_exec.getList(key: string) : java.util.List

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.util.List )


_exec.getList(key: string, claz: java.lang.Class) : java.util.List

Attributes
NAMETYPEDESCRIPTION
keystring
clazjava.lang.Class
Return

( java.util.List )


_exec.getList(key: string, defaultValue: java.lang.Object) : java.util.List

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.lang.Object
Return

( java.util.List )


_exec.getList(key: string, defaultValue: java.lang.Object, claz: java.lang.Class) : java.util.List

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.lang.Object
clazjava.lang.Class
Return

( java.util.List )


getLocalDate


_exec.getLocalDate(key: string) : java.time.LocalDate

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.time.LocalDate )


_exec.getLocalDate(key: string, defaultValue: java.time.LocalDate) : java.time.LocalDate

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.time.LocalDate
Return

( java.time.LocalDate )


getLocalDateTime


_exec.getLocalDateTime(key: string) : java.time.LocalDateTime

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.time.LocalDateTime )


_exec.getLocalDateTime(key: string, defaultValue: java.time.LocalDateTime) : java.time.LocalDateTime

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.time.LocalDateTime
Return

( java.time.LocalDateTime )


getLocalTime


_exec.getLocalTime(key: string) : java.time.LocalTime

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.time.LocalTime )


_exec.getLocalTime(key: string, defaultValue: java.time.LocalTime) : java.time.LocalTime

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.time.LocalTime
Return

( java.time.LocalTime )


getLong


_exec.getLong(index: int) : long

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( long )


_exec.getLong(index: int, defaultValue: long) : long

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuelong
Return

( long )


_exec.getLong(key: string) : long

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( long )


_exec.getLong(key: string, defaultValue: long) : long

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuelong
Return

( long )


getMap


_exec.getMap(index: int) : Config | Exec | Header | Req | Res | Values | DataSchema

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( Config | Exec | Header | Req | Res | Values | DataSchema )


_exec.getMap(index: int, defaultValue: java.lang.Object) : Config | Exec | Header | Req | Res | Values | DataSchema

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuejava.lang.Object
Return

( Config | Exec | Header | Req | Res | Values | DataSchema )


_exec.getMap(key: string) : Config | Exec | Header | Req | Res | Values | DataSchema

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( Config | Exec | Header | Req | Res | Values | DataSchema )


_exec.getMap(key: string, defaultValue: java.lang.Object) : Config | Exec | Header | Req | Res | Values | DataSchema

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.lang.Object
Return

( Config | Exec | Header | Req | Res | Values | DataSchema )


getOrDefault


_exec.getOrDefault(arg0: java.lang.Object, arg1: java.lang.Object) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
arg0java.lang.Object
arg1java.lang.Object
Return

( java.lang.Object )


getSQLDate


_exec.getSQLDate(key: string) : java.sql.Date

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.sql.Date )


_exec.getSQLDate(key: string, defaultValue: java.sql.Date) : java.sql.Date

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.sql.Date
Return

( java.sql.Date )


getSQLTime


_exec.getSQLTime(key: string) : java.sql.Time

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.sql.Time )


_exec.getSQLTime(key: string, defaultValue: java.sql.Time) : java.sql.Time

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.sql.Time
Return

( java.sql.Time )


getSQLTimestamp


_exec.getSQLTimestamp(key: string) : java.sql.Timestamp

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.sql.Timestamp )


_exec.getSQLTimestamp(key: string, defaultValue: java.sql.Timestamp) : java.sql.Timestamp

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.sql.Timestamp
Return

( java.sql.Timestamp )


getShort


_exec.getShort(index: int) : short

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( short )


_exec.getShort(index: int, defaultValue: short) : short

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValueshort
Return

( short )


_exec.getShort(key: string) : short

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( short )


_exec.getShort(key: string, defaultValue: short) : short

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValueshort
Return

( short )


getSize


_exec.getSize() : int

Return

( int )


getString


_exec.getString(index: int) : string

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( string )


_exec.getString(index: int, defaultValue: string) : string

Attributes
NAMETYPEDESCRIPTION
indexint
defaultValuestring
Return

( string )


_exec.getString(key: string) : string

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( string )


_exec.getString(key: string, defaultValue: string) : string

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuestring
Return

( string )


_exec.getString(key: string, defaultValue: string, charsetName: string) : string

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuestring
charsetNamestring
Return

( string )


getUID


_exec.getUID(key: string) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.util.UUID )


_exec.getUID(key: string, defaultValue: string) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuestring
Return

( java.util.UUID )


_exec.getUID(key: string, defaultValue: java.util.UUID) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.util.UUID
Return

( java.util.UUID )


getURLCharacterEncoding


_exec.getURLCharacterEncoding() : string

Description

Gets the character encoding to be used in formatting for URL (QueryString).

Return

( string )

Character encoding code.


getUUID


_exec.getUUID(key: string) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.util.UUID )


_exec.getUUID(key: string, defaultValue: string) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuestring
Return

( java.util.UUID )


_exec.getUUID(key: string, defaultValue: java.util.UUID) : java.util.UUID

Attributes
NAMETYPEDESCRIPTION
keystring
defaultValuejava.util.UUID
Return

( java.util.UUID )


getValues


_exec.getValues() : java.util.Collection

Description

Gets all object values stored in both dictionary and list mode.

Return

( java.util.Collection )

List of all obtained values.


_exec.getValues(index: int) : Values

Description

Gets the object associated with the index and then casts to Values (Dictionary or List).

Attributes
NAMETYPEDESCRIPTION
indexintThe index to get the associated object.
Return

( Values )

Object converted to Values.


_exec.getValues(index: int, defaultValue: java.lang.Object) : Values

Description

Gets the object associated with the index and then casts to Values (Dictionary or List).

Attributes
NAMETYPEDESCRIPTION
indexintThe index to get the associated object.
defaultValuejava.lang.ObjectIf it fails to get the value as an object in Values then it returns this default value instead.
Return

( Values )

Object converted to Values.


_exec.getValues(key: string) : Values

Description

Gets the object associated with the key and then casts to Values (Dictionary or List).

Attributes
NAMETYPEDESCRIPTION
keystringThe key to get the associated object.
Return

( Values )

Object converted to Values.


_exec.getValues(key: string, defaultValue: java.lang.Object) : Values

Description

Gets the object associated with the key and then casts to Values (Dictionary or List).

Attributes
NAMETYPEDESCRIPTION
keystringThe key to get the associated object.
defaultValuejava.lang.ObjectIf it fails to get the value as an object in Values then it returns this default value instead.
Return

( Values )

Object converted to Values.


has


_exec.has(o: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( boolean )


_exec.has(key: string) : boolean

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( boolean )


_exec.has(key: string, value: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
keystring
valuejava.lang.Object
Return

( boolean )


hasKey


_exec.hasKey(key: string) : boolean

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( boolean )


hasValue


_exec.hasValue(value: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
valuejava.lang.Object
Return

( boolean )


indexOf


_exec.indexOf(o: java.lang.Object) : int

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( int )


is


_exec.is(o: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( boolean )


isEmpty


_exec.isEmpty() : boolean

Return

( boolean )


isJail


_exec.isJail() : boolean

Description

Check if the restriction is active for all associated files to be loaded only from a specific directory.

Return

( boolean )

If the restriction on associated files is active.


isList


_exec.isList() : boolean

Return

( boolean )


_exec.isList(o: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( boolean )


isLockedAsReadOnly


_exec.isLockedAsReadOnly() : boolean

Description

Check if it is locked in read-only mode.

Return

( boolean )

Whether it is in read-only mode or not.


isMap


_exec.isMap() : boolean

Return

( boolean )


_exec.isMap(o: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( boolean )


isMergeable


_exec.isMergeable(object: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
objectjava.lang.Object
Return

( boolean )


iterator


_exec.iterator() : java.util.Iterator

Return

( java.util.Iterator )


join


_exec.join(splitter: string) : string

Attributes
NAMETYPEDESCRIPTION
splitterstring
Return

( string )


keySet


_exec.keySet() : java.util.Set

Return

( java.util.Set )


keys


_exec.keys() : java.util.Set

Return

( java.util.Set )


keysSorted


_exec.keysSorted() : java.util.Set

Return

( java.util.Set )


keysToString


_exec.keysToString(splitter: string) : string

Attributes
NAMETYPEDESCRIPTION
splitterstring
Return

( string )


_exec.keysToString(map: Config | Exec | Header | Req | Res | Values | DataSchema, splitter: string) : string

Attributes
NAMETYPEDESCRIPTION
mapConfig | Exec | Header | Req | Res | Values | DataSchema
splitterstring
Return

( string )


lastIndexOf


_exec.lastIndexOf(o: java.lang.Object) : int

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( int )


length


_exec.length() : int

Return

( int )


list


_exec.list() : java.util.List

Return

( java.util.List )


_exec.list(cls: java.lang.Class) : java.util.List

Attributes
NAMETYPEDESCRIPTION
clsjava.lang.Class
Return

( java.util.List )


listIterator


_exec.listIterator() : java.util.ListIterator

Return

( java.util.ListIterator )


_exec.listIterator(index: int) : java.util.ListIterator

Attributes
NAMETYPEDESCRIPTION
indexint
Return

( java.util.ListIterator )


listOfValues


_exec.listOfValues() : java.util.List

Return

( java.util.List )


loadJSON


_exec.loadJSON(in: InputStream) : void

Attributes
NAMETYPEDESCRIPTION
inInputStream
Return

( void )


_exec.loadJSON(in: java.io.Reader) : void

Attributes
NAMETYPEDESCRIPTION
injava.io.Reader
Return

( void )


loadProperties


_exec.loadProperties(in: InputStream) : void

Attributes
NAMETYPEDESCRIPTION
inInputStream
Return

( void )


_exec.loadProperties(in: java.io.Reader) : void

Attributes
NAMETYPEDESCRIPTION
injava.io.Reader
Return

( void )


_exec.loadProperties(properties: java.util.Properties) : void

Attributes
NAMETYPEDESCRIPTION
propertiesjava.util.Properties
Return

( void )


loadPropertiesFromString


_exec.loadPropertiesFromString(data: string) : void

Attributes
NAMETYPEDESCRIPTION
datastring
Return

( void )


lockAsReadOnly


_exec.lockAsReadOnly() : Values

Description

Check if it is locked in read-only mode.

Return

( Values )

Whether it is in read-only mode or not.


map


_exec.map() : Config | Exec | Header | Req | Res | Values | DataSchema

Return

( Config | Exec | Header | Req | Res | Values | DataSchema )


merge


_exec.merge(object: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
objectjava.lang.Object
Return

( Values )


_exec.merge(arg0: java.lang.Object, arg1: java.lang.Object, arg2: java.util.function.BiFunction) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
arg0java.lang.Object
arg1java.lang.Object
arg2java.util.function.BiFunction
Return

( java.lang.Object )


newList


_exec.newList() : Values

Return

( Values )


newMap


_exec.newMap() : Values

Return

( Values )


of


_exec.of(array: [Ljava.lang.Object;[]) : Values

Attributes
NAMETYPEDESCRIPTION
array[Ljava.lang.Object;[]
Return

( Values )


_exec.of(o: java.lang.Object) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( java.lang.Object )


_exec.of(list: java.util.List) : Values

Attributes
NAMETYPEDESCRIPTION
listjava.util.List
Return

( Values )


_exec.of(map: Config | Exec | Header | Req | Res | Values | DataSchema) : Values

Attributes
NAMETYPEDESCRIPTION
mapConfig | Exec | Header | Req | Res | Values | DataSchema
Return

( Values )


ofList


_exec.ofList(o: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( Values )


ofMap


_exec.ofMap(o: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( Values )


onError


_exec.onError(function: java.util.function.Function) : void

Attributes
NAMETYPEDESCRIPTION
functionjava.util.function.Function
Return

( void )


push


_exec.push(o: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( Values )


put


_exec.put(key: java.lang.Object, value: java.lang.Object) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
keyjava.lang.Object
valuejava.lang.Object
Return

( java.lang.Object )


_exec.put(key: string, value: java.lang.Object) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
keystring
valuejava.lang.Object
Return

( java.lang.Object )


putAll


_exec.putAll(m: Config | Exec | Header | Req | Res | Values | DataSchema) : void

Attributes
NAMETYPEDESCRIPTION
mConfig | Exec | Header | Req | Res | Values | DataSchema
Return

( void )


putIfAbsent


_exec.putIfAbsent(arg0: java.lang.Object, arg1: java.lang.Object) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
arg0java.lang.Object
arg1java.lang.Object
Return

( java.lang.Object )


remove


_exec.remove(i: int) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
iint
Return

( java.lang.Object )


_exec.remove(o: java.lang.Object) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
ojava.lang.Object
Return

( java.lang.Object )


_exec.remove(arg0: java.lang.Object, arg1: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
arg0java.lang.Object
arg1java.lang.Object
Return

( boolean )


removeAll


_exec.removeAll() : void

Return

( void )


_exec.removeAll(c: java.util.Collection) : boolean

Attributes
NAMETYPEDESCRIPTION
cjava.util.Collection
Return

( boolean )


replace


_exec.replace(arg0: java.lang.Object, arg1: java.lang.Object) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
arg0java.lang.Object
arg1java.lang.Object
Return

( java.lang.Object )


_exec.replace(arg0: java.lang.Object, arg1: java.lang.Object, arg2: java.lang.Object) : boolean

Attributes
NAMETYPEDESCRIPTION
arg0java.lang.Object
arg1java.lang.Object
arg2java.lang.Object
Return

( boolean )


replaceAll


_exec.replaceAll(arg0: java.util.function.BiFunction) : void

Attributes
NAMETYPEDESCRIPTION
arg0java.util.function.BiFunction
Return

( void )


_exec.replaceAll(operator: java.util.function.UnaryOperator) : void

Attributes
NAMETYPEDESCRIPTION
operatorjava.util.function.UnaryOperator
Return

( void )


_exec.replaceAll(function: org.graalvm.polyglot.Value) : void

Attributes
NAMETYPEDESCRIPTION
functionorg.graalvm.polyglot.Value
Return

( void )


retainAll


_exec.retainAll(c: java.util.Collection) : boolean

Attributes
NAMETYPEDESCRIPTION
cjava.util.Collection
Return

( boolean )


safeString


_exec.safeString(object: java.lang.Object) : string

Attributes
NAMETYPEDESCRIPTION
objectjava.lang.Object
Return

( string )


_exec.safeString(object: java.lang.Object, defaultValue: string) : string

Attributes
NAMETYPEDESCRIPTION
objectjava.lang.Object
defaultValuestring
Return

( string )


saveJSON


_exec.saveJSON(out: OutputStream) : void

Attributes
NAMETYPEDESCRIPTION
outOutputStream
Return

( void )


_exec.saveJSON(out: java.io.Writer) : void

Attributes
NAMETYPEDESCRIPTION
outjava.io.Writer
Return

( void )


saveProperties


_exec.saveProperties(out: OutputStream) : void

Attributes
NAMETYPEDESCRIPTION
outOutputStream
Return

( void )


_exec.saveProperties(out: java.io.Writer) : void

Attributes
NAMETYPEDESCRIPTION
outjava.io.Writer
Return

( void )



_exec.search(content: string) : string

Attributes
NAMETYPEDESCRIPTION
contentstring
Return

( string )


_exec.search(content: string, ignoreCase: boolean) : string

Attributes
NAMETYPEDESCRIPTION
contentstring
ignoreCaseboolean
Return

( string )


_exec.search(content: string, splitter: string) : string

Attributes
NAMETYPEDESCRIPTION
contentstring
splitterstring
Return

( string )


_exec.search(content: string, splitter: string, ignoreCase: boolean) : string

Attributes
NAMETYPEDESCRIPTION
contentstring
splitterstring
ignoreCaseboolean
Return

( string )


_exec.search(map: Config | Exec | Header | Req | Res | Values | DataSchema, content: string, splitter: string, ignoreCase: boolean) : string

Attributes
NAMETYPEDESCRIPTION
mapConfig | Exec | Header | Req | Res | Values | DataSchema
contentstring
splitterstring
ignoreCaseboolean
Return

( string )


service


_exec.service(path: string) : ScriptResult

Description

Execution of scripts that are in the server/services/ folder.

How To Use
_exec.service("another-script-maybe-in-another-language");
Attributes
NAMETYPEDESCRIPTION
pathstringScript path originating from 'services/' to be executed.
Return

( ScriptResult )


_exec.service(path: string, preserveContext: boolean) : ScriptResult

Description

Execution of scripts that are in the server/services/ folder.

How To Use
_exec.service("another-script-maybe-in-another-language");
Attributes
NAMETYPEDESCRIPTION
pathstringScript path originating from 'services/' to be executed.
preserveContextbooleanWhether to keep the same execution context or start a new one.
Return

( ScriptResult )


set


_exec.set(index: int, element: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
indexint
elementjava.lang.Object
Return

( Values )


_exec.set(key: string, value: java.lang.Object) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuejava.lang.Object
Return

( Values )


setForceList


_exec.setForceList(forceList: boolean) : Values

Attributes
NAMETYPEDESCRIPTION
forceListboolean
Return

( Values )


setForceMap


_exec.setForceMap(forceMap: boolean) : Values

Attributes
NAMETYPEDESCRIPTION
forceMapboolean
Return

( Values )


setIfFalse


_exec.setIfFalse(key: string, value: boolean) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valueboolean
Return

( Values )


setIfGreaterThanZero


_exec.setIfGreaterThanZero(key: string, value: double) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuedouble
Return

( Values )


_exec.setIfGreaterThanZero(key: string, value: float) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuefloat
Return

( Values )


_exec.setIfGreaterThanZero(key: string, value: int) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valueint
Return

( Values )


_exec.setIfGreaterThanZero(key: string, value: long) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuelong
Return

( Values )


_exec.setIfGreaterThanZero(key: string, value: short) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valueshort
Return

( Values )


setIfLowerThanZero


_exec.setIfLowerThanZero(key: string, value: double) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuedouble
Return

( Values )


_exec.setIfLowerThanZero(key: string, value: float) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuefloat
Return

( Values )


_exec.setIfLowerThanZero(key: string, value: int) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valueint
Return

( Values )


_exec.setIfLowerThanZero(key: string, value: long) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuelong
Return

( Values )


_exec.setIfLowerThanZero(key: string, value: short) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valueshort
Return

( Values )


setIfNotEmpty


_exec.setIfNotEmpty(key: string, value: string) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuestring
Return

( Values )


setIfNotZero


_exec.setIfNotZero(key: string, value: double) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuedouble
Return

( Values )


_exec.setIfNotZero(key: string, value: float) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuefloat
Return

( Values )


_exec.setIfNotZero(key: string, value: int) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valueint
Return

( Values )


_exec.setIfNotZero(key: string, value: long) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valuelong
Return

( Values )


_exec.setIfNotZero(key: string, value: short) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valueshort
Return

( Values )


setIfTrue


_exec.setIfTrue(key: string, value: boolean) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
valueboolean
Return

( Values )


setNull


_exec.setNull(key: string) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( Values )


setURLCharacterEncoding


_exec.setURLCharacterEncoding(characterEncoding: string) : void

Description

Defines the character encoding to be used in formatting for URL (QueryString).

Attributes
NAMETYPEDESCRIPTION
characterEncodingstringCharacter encoding code.
Return

( void )


size


_exec.size() : int

Return

( int )


sizeOfList


_exec.sizeOfList() : int

Return

( int )


sizeOfMap


_exec.sizeOfMap() : int

Return

( int )


sleep


_exec.sleep(interval: long) : void

Description

Pauses execution, useful for causing some controlled processing delay.

How To Use
// Stop the execution for 3 seconds:
_exec.sleep(3000);
Attributes
NAMETYPEDESCRIPTION
intervallongTime interval in milliseconds to pause execution.
Return

( void )


sort


_exec.sort(c: java.util.Comparator) : void

Attributes
NAMETYPEDESCRIPTION
cjava.util.Comparator
Return

( void )


_exec.sort(function: org.graalvm.polyglot.Value) : void

Attributes
NAMETYPEDESCRIPTION
functionorg.graalvm.polyglot.Value
Return

( void )


spliterator


_exec.spliterator() : java.util.Spliterator

Return

( java.util.Spliterator )


stop


_exec.stop() : void

Description

It stops the execution of the current script, useful for interrupting the execution.

How To Use
// For the execution:
_out.println('Will stop...<br/>');
_exec.stop();
_out.println('Not run this line.');
Return

( void )


subList


_exec.subList(fromIndex: int, toIndex: int) : java.util.List

Attributes
NAMETYPEDESCRIPTION
fromIndexint
toIndexint
Return

( java.util.List )


toArray


_exec.toArray() : [Ljava.lang.Object;[]

Return

( [Ljava.lang.Object;[] )


_exec.toArray(a: [Ljava.lang.Object;[]) : [Ljava.lang.Object;[]

Attributes
NAMETYPEDESCRIPTION
a[Ljava.lang.Object;[]
Return

( [Ljava.lang.Object;[] )


toByteArray


_exec.toByteArray() : byte[]

Return

( byte[] )


toDoubleArray


_exec.toDoubleArray() : double[]

Return

( double[] )


toFloatArray


_exec.toFloatArray() : float[]

Return

( float[] )


toFormMap


_exec.toFormMap() : Values

Return

( Values )


_exec.toFormMap(key: string, data: Values) : Values

Attributes
NAMETYPEDESCRIPTION
keystring
dataValues
Return

( Values )


_exec.toFormMap(data: Values) : Values

Attributes
NAMETYPEDESCRIPTION
dataValues
Return

( Values )


toIntArray


_exec.toIntArray() : int[]

Return

( int[] )


toJSON


_exec.toJSON() : string

Return

( string )


_exec.toJSON(htmlEscape: boolean) : string

Attributes
NAMETYPEDESCRIPTION
htmlEscapeboolean
Return

( string )


_exec.toJSON(htmlEscape: boolean, indentFactor: int) : string

Attributes
NAMETYPEDESCRIPTION
htmlEscapeboolean
indentFactorint
Return

( string )


_exec.toJSON(indentFactor: int) : string

Attributes
NAMETYPEDESCRIPTION
indentFactorint
Return

( string )


_exec.toJSON(values: java.util.List) : string

Attributes
NAMETYPEDESCRIPTION
valuesjava.util.List
Return

( string )


_exec.toJSON(values: java.util.List, htmlEscape: boolean) : string

Attributes
NAMETYPEDESCRIPTION
valuesjava.util.List
htmlEscapeboolean
Return

( string )


_exec.toJSON(values: java.util.List, htmlEscape: boolean, indentFactor: int) : string

Attributes
NAMETYPEDESCRIPTION
valuesjava.util.List
htmlEscapeboolean
indentFactorint
Return

( string )


_exec.toJSON(values: java.util.List, indentFactor: int) : string

Attributes
NAMETYPEDESCRIPTION
valuesjava.util.List
indentFactorint
Return

( string )


toJSONObject


_exec.toJSONObject(object: java.lang.Object, htmlEscape: boolean) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
objectjava.lang.Object
htmlEscapeboolean
Return

( java.lang.Object )


toJSONString


_exec.toJSONString(object: java.lang.Object, htmlEscape: boolean, indentFactor: int) : string

Attributes
NAMETYPEDESCRIPTION
objectjava.lang.Object
htmlEscapeboolean
indentFactorint
Return

( string )


toList


_exec.toList() : java.util.List

Return

( java.util.List )


_exec.toList(cls: java.lang.Class) : java.util.List

Attributes
NAMETYPEDESCRIPTION
clsjava.lang.Class
Return

( java.util.List )


toLongArray


_exec.toLongArray() : long[]

Return

( long[] )


toMap


_exec.toMap() : Config | Exec | Header | Req | Res | Values | DataSchema

Return

( Config | Exec | Header | Req | Res | Values | DataSchema )


toProperties


_exec.toProperties() : string

Return

( string )


toShortArray


_exec.toShortArray() : short[]

Return

( short[] )


toStringArray


_exec.toStringArray() : [Ljava.lang.String;[]

Return

( [Ljava.lang.String;[] )


unset


_exec.unset(key: string) : java.lang.Object

Attributes
NAMETYPEDESCRIPTION
keystring
Return

( java.lang.Object )


unsetAll


_exec.unsetAll() : void

Return

( void )


values


_exec.values() : java.util.Collection

Description

Gets all object values stored in both dictionary and list mode.

Return

( java.util.Collection )

List of all obtained values.


valuesToString


_exec.valuesToString(splitter: string) : string

Attributes
NAMETYPEDESCRIPTION
splitterstring
Return

( string )


_exec.valuesToString(splitter: string, excludes: [Ljava.lang.String;[]) : string

Attributes
NAMETYPEDESCRIPTION
splitterstring
excludes[Ljava.lang.String;[]
Return

( string )


_exec.valuesToString(splitter: string, excludes: [Ljava.lang.String;[], config: Values) : string

Attributes
NAMETYPEDESCRIPTION
splitterstring
excludes[Ljava.lang.String;[]
configValues
Return

( string )


_exec.valuesToString(splitter: string, config: Values) : string

Attributes
NAMETYPEDESCRIPTION
splitterstring
configValues
Return

( string )


_exec.valuesToString(map: Config | Exec | Header | Req | Res | Values | DataSchema, splitter: string) : string

Attributes
NAMETYPEDESCRIPTION
mapConfig | Exec | Header | Req | Res | Values | DataSchema
splitterstring
Return

( string )


_exec.valuesToString(map: Config | Exec | Header | Req | Res | Values | DataSchema, splitter: string, excludes: [Ljava.lang.String;[]) : string

Attributes
NAMETYPEDESCRIPTION
mapConfig | Exec | Header | Req | Res | Values | DataSchema
splitterstring
excludes[Ljava.lang.String;[]
Return

( string )


_exec.valuesToString(map: Config | Exec | Header | Req | Res | Values | DataSchema, splitter: string, excludes: [Ljava.lang.String;[], config: Values) : string

Attributes
NAMETYPEDESCRIPTION
mapConfig | Exec | Header | Req | Res | Values | DataSchema
splitterstring
excludes[Ljava.lang.String;[]
configValues
Return

( string )


_exec.valuesToString(map: Config | Exec | Header | Req | Res | Values | DataSchema, splitter: string, config: Values) : string

Attributes
NAMETYPEDESCRIPTION
mapConfig | Exec | Header | Req | Res | Values | DataSchema
splitterstring
configValues
Return

( string )