Config
With the Config feature you can share information during processing and you can access your parameters at any time during the life cycle's order.
For example, when a request to process a service arrives at Netuno a series of application scripts are run and in any of these scripts it is possible to share information centrally with Config.
// Add a configuration
_config.set('admin-mail', 'admin@netuno.org');
// Take the configuration value
const adminMail = _config.getString('admin-mail');
add
_config.add(index: int, element: java.lang.Object) : Values
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| element | java.lang.Object |
Return
( Values )
_config.add(o: java.lang.Object) : Values
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| o | java.lang.Object |
Return
( Values )
addAll
_config.addAll(index: int, c: java.util.Collection<java.lang.Object>) : boolean
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| c | java.util.Collection |
Return
( boolean )
_config.addAll(c: java.util.Collection<java.lang.Object>) : boolean
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| c | java.util.Collection |
Return
( boolean )
as
_config.as(o: java.lang.Object) : Values
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| o | java.lang.Object |
Return
( Values )
_config.as(o: java.lang.Object, oDefault: java.lang.Object) : Values
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| o | java.lang.Object | |
| oDefault | java.lang.Object |
Return
( Values )
asBoolean
_config.asBoolean(index: int) : boolean
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( boolean )
_config.asBoolean(index: int, defaultValue: boolean) : boolean
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | boolean |
Return
( boolean )
_config.asBoolean(key: string) : boolean
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( boolean )
_config.asBoolean(key: string, defaultValue: boolean) : boolean
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | boolean |
Return
( boolean )
asByte
_config.asByte(index: int) : byte
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( byte )
_config.asByte(index: int, defaultValue: byte) : byte
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | byte |
Return
( byte )
_config.asByte(key: string, defaultValue: byte) : byte
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | byte |
Return
( byte )
asCalendar
_config.asCalendar(index: int) : java.util.Calendar
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( java.util.Calendar )
_config.asCalendar(index: int, defaultValue: java.util.Calendar) : java.util.Calendar
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.util.Calendar |
Return
( java.util.Calendar )
_config.asCalendar(key: string) : java.util.Calendar
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.util.Calendar )
_config.asCalendar(key: string, defaultValue: java.util.Calendar) : java.util.Calendar
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.util.Calendar |
Return
( java.util.Calendar )
asDate
_config.asDate(index: int) : java.util.Date
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( java.util.Date )
_config.asDate(index: int, defaultValue: java.util.Date) : java.util.Date
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.util.Date |
Return
( java.util.Date )
_config.asDate(key: string) : java.util.Date
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.util.Date )
_config.asDate(key: string, defaultValue: java.util.Date) : java.util.Date
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.util.Date |
Return
( java.util.Date )
asDouble
_config.asDouble(index: int) : double
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( double )
_config.asDouble(index: int, defaultValue: double) : double
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | double |
Return
( double )
_config.asDouble(key: string) : double
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( double )
_config.asDouble(key: string, defaultValue: double) : double
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | double |
Return
( double )
asFile
_config.asFile(index: int) : File
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( File )
_config.asFile(key: string) : File
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( File )
asFloat
_config.asFloat(index: int) : float
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( float )
_config.asFloat(index: int, defaultValue: float) : float
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | float |
Return
( float )
_config.asFloat(key: string) : float
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( float )
_config.asFloat(key: string, defaultValue: float) : float
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | float |
Return
( float )
asHTMLDecode
_config.asHTMLDecode(key: string) : string
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( string )
asHTMLEncode
_config.asHTMLEncode(key: string) : string
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( string )
asInstant
_config.asInstant(index: int) : java.time.Instant
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( java.time.Instant )
_config.asInstant(index: int, defaultValue: java.time.Instant) : java.time.Instant
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.time.Instant |
Return
( java.time.Instant )
_config.asInstant(key: string) : java.time.Instant
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.time.Instant )
_config.asInstant(key: string, defaultValue: java.time.Instant) : java.time.Instant
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.time.Instant |
Return
( java.time.Instant )
asInt
_config.asInt(index: int) : int
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( int )
_config.asInt(index: int, defaultValue: int) : int
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | int |
Return
( int )
_config.asInt(key: string, defaultValue: short) : int
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | short |
Return
( int )
asList
_config.asList(index: int) : java.util.List<?>
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( java.util.List )
_config.asList(index: int, claz: java.lang.Class<?>) : java.util.List<?>
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| claz | java.lang.Class |
Return
( java.util.List )
_config.asList(index: int, defaultValue: java.lang.Object) : java.util.List<?>
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.lang.Object |
Return
( java.util.List )
_config.asList(index: int, defaultValue: java.lang.Object, claz: java.lang.Class<?>) : java.util.List<?>
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.lang.Object | |
| claz | java.lang.Class |
Return
( java.util.List )
_config.asList(key: string) : java.util.List<?>
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.util.List )
_config.asList(key: string, claz: java.lang.Class<?>) : java.util.List<?>
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| claz | java.lang.Class |
Return
( java.util.List )
_config.asList(key: string, defaultValue: java.lang.Object) : java.util.List<?>
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.lang.Object |
Return
( java.util.List )
_config.asList(key: string, defaultValue: java.lang.Object, claz: java.lang.Class<?>) : java.util.List<?>
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.lang.Object | |
| claz | java.lang.Class |
Return
( java.util.List )
asLocalDate
_config.asLocalDate(index: int) : java.time.LocalDate
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( java.time.LocalDate )
_config.asLocalDate(index: int, defaultValue: java.time.LocalDate) : java.time.LocalDate
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.time.LocalDate |
Return
( java.time.LocalDate )
_config.asLocalDate(key: string) : java.time.LocalDate
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.time.LocalDate )
_config.asLocalDate(key: string, defaultValue: java.time.LocalDate) : java.time.LocalDate
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.time.LocalDate |
Return
( java.time.LocalDate )
asLocalDateTime
_config.asLocalDateTime(index: int) : java.time.LocalDateTime
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( java.time.LocalDateTime )
_config.asLocalDateTime(index: int, defaultValue: java.time.LocalDateTime) : java.time.LocalDateTime
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.time.LocalDateTime |
Return
( java.time.LocalDateTime )
_config.asLocalDateTime(key: string) : java.time.LocalDateTime
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.time.LocalDateTime )
_config.asLocalDateTime(key: string, defaultValue: java.time.LocalDateTime) : java.time.LocalDateTime
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.time.LocalDateTime |
Return
( java.time.LocalDateTime )
asLocalTime
_config.asLocalTime(index: int) : java.time.LocalTime
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( java.time.LocalTime )
_config.asLocalTime(index: int, defaultValue: java.time.LocalTime) : java.time.LocalTime
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.time.LocalTime |
Return
( java.time.LocalTime )
_config.asLocalTime(key: string) : java.time.LocalTime
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.time.LocalTime )
_config.asLocalTime(key: string, defaultValue: java.time.LocalTime) : java.time.LocalTime
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.time.LocalTime |
Return
( java.time.LocalTime )
asLong
_config.asLong(index: int) : long
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( long )
_config.asLong(index: int, defaultValue: long) : long
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | long |
Return
( long )
_config.asLong(key: string) : long
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( long )
_config.asLong(key: string, defaultValue: long) : long
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | long |
Return
( long )
asMap
_config.asMap(index: int) : Values | DataSchema | java.util.Map
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( Values | DataSchema | java.util.Map )
_config.asMap(index: int, defaultValue: java.lang.Object) : Values | DataSchema | java.util.Map
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.lang.Object |
Return
( Values | DataSchema | java.util.Map )
_config.asMap(key: string) : Values | DataSchema | java.util.Map
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( Values | DataSchema | java.util.Map )
_config.asMap(key: string, defaultValue: java.lang.Object) : Values | DataSchema | java.util.Map
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.lang.Object |
Return
( Values | DataSchema | java.util.Map )
asSQLDate
_config.asSQLDate(index: int) : java.sql.Date
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( java.sql.Date )
_config.asSQLDate(index: int, defaultValue: java.sql.Date) : java.sql.Date
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.sql.Date |
Return
( java.sql.Date )
_config.asSQLDate(key: string) : java.sql.Date
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.sql.Date )
_config.asSQLDate(key: string, defaultValue: java.sql.Date) : java.sql.Date
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.sql.Date |
Return
( java.sql.Date )
asSQLTime
_config.asSQLTime(index: int) : java.sql.Time
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( java.sql.Time )
_config.asSQLTime(index: int, defaultValue: java.sql.Time) : java.sql.Time
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.sql.Time |
Return
( java.sql.Time )
_config.asSQLTime(key: string) : java.sql.Time
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.sql.Time )
_config.asSQLTime(key: string, defaultValue: java.sql.Time) : java.sql.Time
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.sql.Time |
Return
( java.sql.Time )
asSQLTimestamp
_config.asSQLTimestamp(index: int) : java.sql.Timestamp
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( java.sql.Timestamp )
_config.asSQLTimestamp(index: int, defaultValue: java.sql.Timestamp) : java.sql.Timestamp
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | java.sql.Timestamp |
Return
( java.sql.Timestamp )
_config.asSQLTimestamp(key: string) : java.sql.Timestamp
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.sql.Timestamp )
_config.asSQLTimestamp(key: string, defaultValue: java.sql.Timestamp) : java.sql.Timestamp
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.sql.Timestamp |
Return
( java.sql.Timestamp )
asShort
_config.asShort(index: int) : short
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( short )
_config.asShort(index: int, defaultValue: short) : short
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | short |
Return
( short )
_config.asShort(key: string) : short
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( short )
_config.asShort(key: string, defaultValue: short) : short
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | short |
Return
( short )
asString
_config.asString(index: int) : string
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int |
Return
( string )
_config.asString(index: int, defaultValue: string) : string
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | |
| defaultValue | string |
Return
( string )
_config.asString(key: string) : string
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( string )
_config.asString(key: string, defaultValue: string) : string
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | string |
Return
( string )
_config.asString(key: string, defaultValue: string, charsetName: string) : string
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | string | |
| charsetName | string |
Return
( string )
asUID
_config.asUID(key: string) : java.util.UUID
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.util.UUID )
_config.asUID(key: string, defaultValue: string) : java.util.UUID
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | string |
Return
( java.util.UUID )
_config.asUID(key: string, defaultValue: java.util.UUID) : java.util.UUID
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.util.UUID |
Return
( java.util.UUID )
asUUID
_config.asUUID(key: string) : java.util.UUID
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string |
Return
( java.util.UUID )
_config.asUUID(key: string, defaultValue: string) : java.util.UUID
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | string |
Return
( java.util.UUID )
_config.asUUID(key: string, defaultValue: java.util.UUID) : java.util.UUID
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| defaultValue | java.util.UUID |
Return
( java.util.UUID )
asValues
_config.asValues(index: int) : Values
Description
Gets the object associated with the index and then casts to Values (Dictionary or List).
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | The index to get the associated object. |
Return
( Values )
Object converted to Values.
_config.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
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| index | int | The index to get the associated object. |
| defaultValue | java.lang.Object | If it fails to get the value as an object in Values then it returns this default value instead. |
Return
( Values )
Object converted to Values.
_config.asValues(key: string) : Values
Description
Gets the object associated with the key and then casts to Values (Dictionary or List).
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | The key to get the associated object. |
Return
( Values )
Object converted to Values.
_config.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
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | The key to get the associated object. |
| defaultValue | java.lang.Object | If it fails to get the value as an object in Values then it returns this default value instead. |
Return
( Values )
Object converted to Values.
baseFile
_config.baseFile(value: java.lang.Object, key: string, content: string) : File
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| value | java.lang.Object | |
| key | string | |
| content | string |
Return
( File )
clear
_config.clear() : void
Return
( void )
cloneJSON
_config.cloneJSON() : Values
Return
( Values )
compute
_config.compute(arg0: ?, arg1: java.util.function.BiFunction<?, ?, ?>) : ?
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.util.function.BiFunction |
Return
( java.lang.Object )
computeIfAbsent
_config.computeIfAbsent(arg0: ?, arg1: java.util.function.Function<?, ?>) : ?
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.util.function.Function |
Return
( java.lang.Object )
computeIfPresent
_config.computeIfPresent(arg0: ?, arg1: java.util.function.BiFunction<?, ?, ?>) : ?
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.util.function.BiFunction |
Return
( java.lang.Object )
contains
_config.contains(o: java.lang.Object) : boolean
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| o | java.lang.Object |
Return
( boolean )
_config.contains(key: string, value: java.lang.Object) : boolean
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| key | string | |
| value | java.lang.Object |
Return
( boolean )
containsAll
_config.containsAll(c: java.util.Collection<?>) : boolean
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| c | java.util.Collection |
Return
( boolean )