WebdaConfiguration
Class: WebdaConfiguration
Extends
Constructors
new WebdaConfiguration(application)
new WebdaConfiguration(
application):WebdaConfiguration
Parameters
• application: Application
Returns
Overrides
Source
packages/shell/src/handlers/config.ts:132
Properties
_ajv
protected_ajv:Ajv
JSON Schema validator instance
Inherited from
Source
packages/core/lib/core.d.ts:216
_ajvSchemas
protected_ajvSchemas:Object
JSON Schema registry Save if a schema was added to Ajv already
Index signature
[key: string]: true
Inherited from
Source
packages/core/lib/core.d.ts:221
_configFile
protected_configFile:string
Inherited from
Source
packages/core/lib/core.d.ts:228
_currentExecutor
protected_currentExecutor:any
Current executor
Inherited from
Source
packages/core/lib/core.d.ts:227
_init
protected_init:Promise<void>
Init promise to ensure, webda is initiated Used for init() method
Inherited from
Source
packages/core/lib/core.d.ts:207
_initPromise
protected_initPromise:Promise<void>
Contains the current initialization process
Inherited from
Source
packages/core/lib/core.d.ts:232
_initTime
protected_initTime:number
When the Core was initialized
Inherited from
Source
packages/core/lib/core.d.ts:236
_initiated
protected_initiated:boolean
If Core is already initiated
Inherited from
Source
packages/core/lib/core.d.ts:196
_requestCORSFilters
protected_requestCORSFilters:RequestFilter<WebContext<any,any>>[]
CORS Filter registry
Added via [[Webda.registerCORSRequestFilter]] See [[CorsFilter]]
Inherited from
WebdaServer._requestCORSFilters
Source
packages/core/lib/core.d.ts:255
_requestFilters
protected_requestFilters:RequestFilter<WebContext<any,any>>[]
Request Filter registry
Added via [[Webda.registerRequestFilter]] See [[CorsFilter]]
Inherited from
Source
packages/core/lib/core.d.ts:248
application
protectedapplication:Application
Application that generates this Core
Inherited from
Source
packages/core/lib/core.d.ts:188
cryptoService
protectedcryptoService:default<CryptoServiceParameters>
Manage encryption within the application
Inherited from
Source
packages/core/lib/core.d.ts:273
devMode
protecteddevMode:boolean
Inherited from
Source
packages/shell/src/handlers/http.ts:27
failedServices
protectedfailedServices:Object
Services who failed to create or initialize
Index signature
[key: string]: any
Inherited from
Source
packages/core/lib/core.d.ts:200
globalContext
protectedglobalContext:GlobalContext
System context
Inherited from
Source
packages/core/lib/core.d.ts:306
interuptables
interuptables:
Object[]
Inherited from
Source
packages/core/lib/core.d.ts:310
operations
protectedoperations:Object
Contains all operations defined by services
Index signature
[key: string]: OperationDefinitionInfo
Inherited from
Source
packages/core/lib/core.d.ts:277
registry
protectedregistry:Store<any,StoreParameters,StoreEvents>
Application registry
Inherited from
Source
packages/core/lib/core.d.ts:269
resourceService
protectedresourceService:default<ResourceServiceParameters>
Resource services used to serve static content
Inherited from
Source
packages/shell/src/handlers/http.ts:33
router
protectedrouter:Router
Router that will route http request in
Inherited from
Source
packages/core/lib/core.d.ts:192
serverStatus
protectedserverStatus:ServerStatus=ServerStatus.Stopped
Inherited from
Source
packages/shell/src/handlers/http.ts:28
subnetChecker
protectedsubnetChecker: (address) =>boolean
Parameters
• address: string
Returns
boolean
Inherited from
Source
packages/shell/src/handlers/http.ts:29
webdaApplication
webdaApplication:
Application
Source
packages/shell/src/handlers/config.ts:130
captureRejectionSymbol
staticreadonlycaptureRejectionSymbol: typeofcaptureRejectionSymbol
Inherited from
WebdaServer.captureRejectionSymbol
Source
packages/shell/node_modules/@types/node/events.d.ts:328
captureRejections
staticcaptureRejections:boolean
Sets or gets the default captureRejection value for all emitters.
Inherited from
Source
packages/shell/node_modules/@types/node/events.d.ts:333
defaultMaxListeners
staticdefaultMaxListeners:number
Inherited from
WebdaServer.defaultMaxListeners
Source
packages/shell/node_modules/@types/node/events.d.ts:334
errorMonitor
staticreadonlyerrorMonitor: typeoferrorMonitor
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error' listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error' event is emitted, therefore the process will still crash if no
regular 'error' listener is installed.
Inherited from
Source
packages/shell/node_modules/@types/node/events.d.ts:327
Methods
addListener()
addListener(
eventName,listener):this
Alias for emitter.on(eventName, listener).
Parameters
• eventName: string | symbol
• listener: (...args) => void
Returns
this
Inherited from
Since
v0.1.26
Source
packages/shell/node_modules/@types/node/events.d.ts:354
addRoute()
addRoute(
url,info):void
Add a route dynamicaly
Parameters
• url: string
of the route can contains dynamic part like {uuid}
• info: RouteInfo
the type of executor
Returns
void
Inherited from
Source
packages/core/lib/core.d.ts:506
callOperation()
callOperation(
context,operationId):Promise<any>
Call an operation within the framework
Parameters
• context: OperationContext<any, any>
• operationId: string
Returns
Promise<any>
Inherited from
Source
packages/core/lib/core.d.ts:442
checkCORSRequest()
protectedcheckCORSRequest(ctx):Promise<boolean>
Verify if an origin is allowed to do request on the API
Parameters
• ctx: WebContext<any, any>
Returns
Promise<boolean>
Inherited from
Source
packages/core/lib/core.d.ts:709
checkOperation()
checkOperation(
context,operationId):Promise<void>
Check if an operation can be executed with the current context
Parameters
• context: OperationContext<any, any>
• operationId: string
Returns
Promise<void>
Inherited from
Source
packages/core/lib/core.d.ts:438
checkOperationPermission()
checkOperationPermission(
context,operationId):boolean
Check if an operation can be executed with the current context
Not checking the input use checkOperation instead to check everything
Parameters
• context: OperationContext<any, any>
• operationId: string
Returns
boolean
true if operation can be executed
Inherited from
WebdaServer.checkOperationPermission
Throws
OperationError if operation is unknown
Source
packages/core/lib/core.d.ts:432
checkRequest()
protectedcheckRequest(ctx):Promise<boolean>
Verify if a request can be done
Parameters
• ctx: WebContext<any, any>
Returns
Promise<boolean>
Inherited from
Source
packages/core/lib/core.d.ts:703
createService()
protectedcreateService(services,service):void
Parameters
• services: any
• service: string
Returns
void
Inherited from
Source
packages/core/lib/core.d.ts:615
emit()
emit<
K>(eventType,event?, ...data?):boolean
Type parameters
• K extends keyof CoreEvents
Parameters
• eventType: string | symbol | K
• event?: CoreEvents[K]
• ...data?: any[]